mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +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
|
||||
*/
|
||||
function check_view_access($view, $get=array()) { /* {{{ */
|
||||
if(!$this->settings->_advancedAcl)
|
||||
return true;
|
||||
if(!$this->settings->_advancedAcl) {
|
||||
if($this->user->isAdmin())
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
if(is_string($view)) {
|
||||
$scripts = array($view);
|
||||
} elseif(is_array($view)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user