Skip to content

Commit

Permalink
Merge branch '2024.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlabci committed Feb 17, 2025
2 parents a054e83 + 326fc74 commit 9753a51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tine20/Tinebase/Controller/EvaluationDimension.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ protected function _checkRight($_action)
return;
}

if (!Tinebase_Core::getUser()
->hasRight(Tinebase_Config::APP_NAME, Tinebase_Acl_Rights::MANAGE_EVALUATION_DIMENSIONS)) {
$user = Tinebase_Core::getUser();
if (is_object($user) && ! $user->hasRight(
Tinebase_Config::APP_NAME, Tinebase_Acl_Rights::MANAGE_EVALUATION_DIMENSIONS)
) {
throw new Tinebase_Exception_AccessDenied('no right to ' . $_action . ' evaluation dimensions');
}
}
Expand Down

0 comments on commit 9753a51

Please sign in to comment.