aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_user.inc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index a73e968ca..262b11d8b 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -1152,6 +1152,14 @@ 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, at least, a classic user
* @return bool
*/