* Fix bug #35575, allow access execution doc from todo-calendar.
This commit is contained in:
@@ -2865,7 +2865,7 @@ class docModel extends model
|
||||
$object->id = 0;
|
||||
}
|
||||
|
||||
$tab = strpos(',doc,product,project,execution,', ",{$this->app->tab},") !== false ? $this->app->tab : 'doc';
|
||||
$tab = strpos(',my,doc,product,project,execution,', ",{$this->app->tab},") !== false ? $this->app->tab : 'doc';
|
||||
if($type == 'mine') $type = 'my';
|
||||
if($type == 'custom') $type = 'team';
|
||||
if($tab == 'doc' and !common::hasPriv('doc', $type . 'Space')) return print(js::locate(helper::createLink('user', 'deny', "module=doc&method={$type}Space")));
|
||||
|
||||
Reference in New Issue
Block a user