mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Add is_generic function
git-svn-id: http://piwigo.org/svn/trunk@2163 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1142,6 +1142,15 @@ function check_status($access_type, $user_status = '')
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Return if user is generic
|
||||
* @return bool
|
||||
*/
|
||||
function is_generic($user_status = '')
|
||||
{
|
||||
return get_user_status($user_status) == 'generic';
|
||||
}
|
||||
|
||||
/*
|
||||
* Return if user is only a guest
|
||||
* @return bool
|
||||
@@ -1151,14 +1160,6 @@ function check_status($access_type, $user_status = '')
|
||||
return get_user_status($user_status) == 'guest';
|
||||
}
|
||||
|
||||
/*
|
||||
* Return if user is generic
|
||||
* @return bool
|
||||
*/
|
||||
function is_generic($user_status = '')
|
||||
{
|
||||
return get_user_status($user_status) == 'generic';
|
||||
}
|
||||
/*
|
||||
* Return if user is, at least, a classic user
|
||||
* @return bool
|
||||
|
||||
Reference in New Issue
Block a user