aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2010-03-23 05:56:50 +0000
committerrub <rub@piwigo.org>2010-03-23 05:56:50 +0000
commita6c771547decb2667c3b9b2cde769dd3fe51bc0c (patch)
tree98403924fcb74012eb62f913365626a4bb0b239e /include
parentc0879165c6f3aec6189bb146e41e3f6d40b85314 (diff)
Add function is_webmaster (like is_admin function)
Add on ignore list the directory local/personal git-svn-id: http://piwigo.org/svn/trunk@5272 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_user.inc.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index f9b31e51c..6a63c83e4 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -1236,6 +1236,15 @@ function check_status($access_type, $user_status = '')
}
/*
+ * Return if user is, at least, a webmaster
+ * @return bool
+*/
+ function is_webmaster($user_status = '')
+{
+ return is_autorize_status(ACCESS_WEBMASTER, $user_status);
+}
+
+/*
* Return if current user is an adviser
* @return bool
*/