From a6c771547decb2667c3b9b2cde769dd3fe51bc0c Mon Sep 17 00:00:00 2001 From: rub Date: Tue, 23 Mar 2010 05:56:50 +0000 Subject: 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 --- include/functions_user.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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 @@ -1235,6 +1235,15 @@ function check_status($access_type, $user_status = '') return is_autorize_status(ACCESS_ADMINISTRATOR, $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 -- cgit v1.2.3