summaryrefslogtreecommitdiff
path: root/app/Model/ProjectPermission.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/ProjectPermission.php')
-rw-r--r--app/Model/ProjectPermission.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/ProjectPermission.php b/app/Model/ProjectPermission.php
index c890a94f..8984ef3e 100644
--- a/app/Model/ProjectPermission.php
+++ b/app/Model/ProjectPermission.php
@@ -176,7 +176,7 @@ class ProjectPermission extends Base
*/
public function isUserAllowed($project_id, $user_id)
{
- return $this->user->isAdmin($user_id) || $this->isMember($project_id, $user_id);
+ return $project_id === 0 || $this->user->isAdmin($user_id) || $this->isMember($project_id, $user_id);
}
/**