* [bug#60099] Locate the page of my space when user has no priv of doc space.

This commit is contained in:
xieqiyu
2025-02-28 13:27:49 +08:00
committed by 代婷婷
parent bae493529a
commit 5de7b57a5e
+1 -1
View File
@@ -75,7 +75,7 @@ class doc extends control
'custom' => 'teamSpace'
);
$method = $spaceMap[$lastViewedSpaceHome];
if(empty($method)) return $this->locate($this->createLink('doc', 'mySpace'));
if(empty($method) || !common::hasPriv('doc', $method)) return $this->locate($this->createLink('doc', 'mySpace'));
$lastViewedSpace = $this->doc->getLastViewed('lastViewedSpace');
if(!is_numeric($lastViewedSpace)) return $this->locate($this->createLink('doc', 'mySpace'));