diff options
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/aur.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc index 37f18f8..bd69c4c 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -422,6 +422,14 @@ function uid_from_email($email="") return $row[0]; } +# check user privileges +# +function check_user_privileges() +{ + $type = account_from_sid($_COOKIE['AURSID']); + return ($type == 'Trusted User' || $type == 'Developer'); +} + /** * Generate clean url with edited/added user values * |