* Fix bug#95108.

This commit is contained in:
chaideqing
2023-06-13 14:05:46 +08:00
parent 1e058a58d2
commit 3c0ac39132
8 changed files with 35 additions and 41 deletions
+1 -5
View File
@@ -23,11 +23,7 @@ class executionModel extends model
*/
public function checkPriv($executionID)
{
if(empty($executionID)) return false;
/* If is admin, return true. */
if($this->app->user->admin) return true;
return (strpos(",{$this->app->user->view->sprints},", ",{$executionID},") !== false);
return !empty($executionID) && ($this->app->user->admin || (strpos(",{$this->app->user->view->sprints},", ",{$executionID},") !== false));
}
/**