* Fix bug #35575, allow access execution doc from todo-calendar.

This commit is contained in:
songchenxuan
2023-05-25 16:32:06 +08:00
parent a27f150fc8
commit a28b37c056
2 changed files with 31 additions and 29 deletions
+1 -1
View File
@@ -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")));