summaryrefslogtreecommitdiff
path: root/app/Api/Authorization/ProjectAuthorization.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-17 17:02:29 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-17 17:02:29 -0500
commit11861044695e5a6553e5ca2b4db8f2fd57702f7f (patch)
tree08ef63bd6d0a3f8e625f14e616088775f7d0bf61 /app/Api/Authorization/ProjectAuthorization.php
parentddeb89e2c6622f197d1b7738042182b34d5054ed (diff)
Add API calls to manage tags
Diffstat (limited to 'app/Api/Authorization/ProjectAuthorization.php')
-rw-r--r--app/Api/Authorization/ProjectAuthorization.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Api/Authorization/ProjectAuthorization.php b/app/Api/Authorization/ProjectAuthorization.php
index 21ecf311..7dcdc445 100644
--- a/app/Api/Authorization/ProjectAuthorization.php
+++ b/app/Api/Authorization/ProjectAuthorization.php
@@ -23,13 +23,13 @@ class ProjectAuthorization extends Base
protected function checkProjectPermission($class, $method, $project_id)
{
if (empty($project_id)) {
- throw new AccessDeniedException('Project not found');
+ throw new AccessDeniedException('Project Not Found');
}
$role = $this->projectUserRoleModel->getUserRole($project_id, $this->userSession->getId());
if (! $this->apiProjectAuthorization->isAllowed($class, $method, $role)) {
- throw new AccessDeniedException('Project access denied');
+ throw new AccessDeniedException('Project Access Denied');
}
}
}