mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
add legacy access rights for groups
This commit is contained in:
parent
83e42948ee
commit
7d9de047bd
|
@ -406,7 +406,7 @@ class SeedDMS_AccessOperation {
|
|||
return false;
|
||||
} /* }}} */
|
||||
|
||||
protected function check_view_lecacy_access($view, $get=array()) { /* {{{ */
|
||||
protected function check_view_legacy_access($view, $get=array()) { /* {{{ */
|
||||
if($this->user->isAdmin())
|
||||
return true;
|
||||
|
||||
|
@ -419,7 +419,19 @@ class SeedDMS_AccessOperation {
|
|||
} else {
|
||||
return false;
|
||||
}
|
||||
if(array_intersect($scripts, array(
|
||||
|
||||
if($this->user->isGuest()) {
|
||||
$user_allowed = array(
|
||||
'Calendar',
|
||||
'ErrorDlg',
|
||||
'Help',
|
||||
'Login',
|
||||
'Search',
|
||||
'ViewDocument',
|
||||
'ViewFolder',
|
||||
);
|
||||
} else {
|
||||
$user_allowed = array(
|
||||
'AddDocument',
|
||||
'AddEvent',
|
||||
'AddFile',
|
||||
|
@ -479,7 +491,6 @@ class SeedDMS_AccessOperation {
|
|||
'ReviseDocument',
|
||||
'RewindWorkflow',
|
||||
'RunSubWorkflow',
|
||||
'SearchForm',
|
||||
'Search',
|
||||
'Session',
|
||||
'SetExpires',
|
||||
|
@ -498,7 +509,10 @@ class SeedDMS_AccessOperation {
|
|||
'ViewEvent',
|
||||
'ViewFolder',
|
||||
'WorkflowGraph',
|
||||
'WorkflowSummary')))
|
||||
'WorkflowSummary');
|
||||
}
|
||||
|
||||
if(array_intersect($scripts, $user_allowed))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
@ -524,7 +538,7 @@ class SeedDMS_AccessOperation {
|
|||
*/
|
||||
function check_view_access($view, $get=array()) { /* {{{ */
|
||||
if(!$this->settings->_advancedAcl) {
|
||||
return $this->check_view_lecacy_access($view, $get);
|
||||
return $this->check_view_legacy_access($view, $get);
|
||||
}
|
||||
if(is_string($view)) {
|
||||
$scripts = array($view);
|
||||
|
|
Loading…
Reference in New Issue
Block a user