Commit 7411e9e3 authored by Johan Cwiklinski's avatar Johan Cwiklinski

Check entities recursively; fixes #3848

parent ae5149e9
......@@ -75,7 +75,7 @@ class Project extends CommonDBTM {
**/
function canViewItem() {
if (!Session::haveAccessToEntity($this->getEntityID())) {
if (!parent::canViewItem()) {
return false;
}
return (Session::haveRight(self::$rightname, self::READALL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment