diff --git a/module/doc/control.php b/module/doc/control.php index dc5c3ea19c..0ed4c081ca 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -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'));