summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-04 21:04:33 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-04 21:04:33 -0500
commit6739dba792f210a1836489a191527747d21e3da4 (patch)
treeb93e9df07f130c719d37b63700b960f1728e6707 /app/Model
parent66e0028b4aad5b3bd2604efb34fe89693383aa86 (diff)
Move user templates to a subfolder
Diffstat (limited to 'app/Model')
-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);
}
/**