summaryrefslogtreecommitdiffstats
path: root/web/lib/aur.inc
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib/aur.inc')
-rw-r--r--web/lib/aur.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index 37f18f81..bd69c4c0 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
*