summaryrefslogtreecommitdiff
path: root/app/Core/Security/Role.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Security/Role.php')
-rw-r--r--app/Core/Security/Role.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Core/Security/Role.php b/app/Core/Security/Role.php
index cb45a8af..c16d4094 100644
--- a/app/Core/Security/Role.php
+++ b/app/Core/Security/Role.php
@@ -50,6 +50,18 @@ class Role
}
/**
+ * Check if the given role is custom or not
+ *
+ * @access public
+ * @param string $role
+ * @return bool
+ */
+ public function isCustomProjectRole($role)
+ {
+ return ! empty($role) && $role !== self::PROJECT_MANAGER && $role !== self::PROJECT_MEMBER && $role !== self::PROJECT_VIEWER;
+ }
+
+ /**
* Get role name
*
* @access public