* [bug#60099] Locate the page of my space when user has no priv of doc space.
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user