diff --git a/lib/functions/tlUser.class.php b/lib/functions/tlUser.class.php index 1670a3e258..5b6273792d 100644 --- a/lib/functions/tlUser.class.php +++ b/lib/functions/tlUser.class.php @@ -794,6 +794,11 @@ function hasRight(&$db,$roleQuestion,$tprojectID = null,$tplanID = null,$getAcce global $g_propRights_global; global $g_propRights_product; + if ( ($this->globalRoleID == TL_ROLES_ADMIN) && ($roleQuestion != 'exec_ro_access') ) + { + return true; + } + if (!is_null($tplanID)) { $testPlanID = $tplanID; @@ -838,6 +843,7 @@ function hasRight(&$db,$roleQuestion,$tprojectID = null,$tplanID = null,$getAcce $globalRights[] = $right->name; } $allRights = $globalRights; + $userTestProjectRoles = $this->tprojectRoles; $userTestPlanRoles = $this->tplanRoles; @@ -1475,4 +1481,4 @@ static public function setExpirationDate(&$dbHandler,$userID,$ISODate) return tl::OK; } -} \ No newline at end of file +}