Add is_generic function
git-svn-id: http://piwigo.org/svn/trunk@2163 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
4601ff1c36
commit
65dbaa60c2
1 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue