diff options
Diffstat (limited to 'app/helpers.php')
-rw-r--r-- | app/helpers.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers.php b/app/helpers.php index a2b91378..f25db0f0 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -78,6 +78,16 @@ function is_admin() } /** + * Return true if the user can configure the project (project are previously filtered) + * + * @return boolean + */ +function is_project_admin(array $project) +{ + return is_admin() || $project['is_private'] == 1; +} + +/** * Return the username * * @param array $user User properties (optional) |