diff options
author | vdigital <vdigital@piwigo.org> | 2007-11-19 20:12:22 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2007-11-19 20:12:22 +0000 |
commit | 65dbaa60c26a1a64b0d7ababb58f2a22342bf42a (patch) | |
tree | a4ff9435d2af63b8f7f61430fc1cd7beb5839f9a | |
parent | 4601ff1c36bd076cc2867c33e470c62c9d728c8a (diff) |
Add is_generic function
git-svn-id: http://piwigo.org/svn/trunk@2163 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | include/functions_user.inc.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index 262b11d8b..148c01dc7 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -1143,22 +1143,23 @@ function check_status($access_type, $user_status = '') } /* - * Return if user is only a guest + * Return if user is generic * @return bool */ - function is_a_guest($user_status = '') + function is_generic($user_status = '') { - return get_user_status($user_status) == 'guest'; + return get_user_status($user_status) == 'generic'; } /* - * Return if user is generic + * Return if user is only a guest * @return bool */ - function is_generic($user_status = '') + function is_a_guest($user_status = '') { - return get_user_status($user_status) == 'generic'; + return get_user_status($user_status) == 'guest'; } + /* * Return if user is, at least, a classic user * @return bool |