summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorDenis Kobozev <d.v.kobozev@gmail.com>2010-06-25 10:12:29 -0400
committerLoui Chang <louipc.ist@gmail.com>2010-07-23 05:40:15 -0400
commitb22f66b3eea75ec62b40688d48ad72829ae58600 (patch)
tree2cec6d391b556c9f3b627cd22edd5468ef8b5e3d /web/lib
parentb5bc6ab7421d8a7e88c54441431bad4e2f899e88 (diff)
downloadaurweb-b22f66b3eea75ec62b40688d48ad72829ae58600.tar.xz
Header and navbar consistent with Arch site redesign
-- Loui Chang Change is_tu to check_user_privileges Change div#archdev-navbar style Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/lib')
-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 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
*