mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
better handling of access rights if advanced access rights are turn off
check_view_access() returns true for admins and false otherwise
This commit is contained in:
parent
cc685141e9
commit
823e7bf76e
|
@ -360,8 +360,12 @@ class SeedDMS_AccessOperation {
|
||||||
* no specific access right is set, otherwise false
|
* no specific access right is set, otherwise false
|
||||||
*/
|
*/
|
||||||
function check_view_access($view, $get=array()) { /* {{{ */
|
function check_view_access($view, $get=array()) { /* {{{ */
|
||||||
if(!$this->settings->_advancedAcl)
|
if(!$this->settings->_advancedAcl) {
|
||||||
|
if($this->user->isAdmin())
|
||||||
return true;
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if(is_string($view)) {
|
if(is_string($view)) {
|
||||||
$scripts = array($view);
|
$scripts = array($view);
|
||||||
} elseif(is_array($view)) {
|
} elseif(is_array($view)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user