Add is_generic function

git-svn-id: http://piwigo.org/svn/trunk@2163 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
vdigital 2007-11-19 20:12:22 +00:00
parent 4601ff1c36
commit 65dbaa60c2

View file

@ -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