diff options
author | Denis Kobozev <d.v.kobozev@gmail.com> | 2010-06-25 16:12:29 +0200 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2010-07-23 11:40:15 +0200 |
commit | b22f66b3eea75ec62b40688d48ad72829ae58600 (patch) | |
tree | 2cec6d391b556c9f3b627cd22edd5468ef8b5e3d /web/lib | |
parent | b5bc6ab7421d8a7e88c54441431bad4e2f899e88 (diff) | |
download | aur-b22f66b3eea75ec62b40688d48ad72829ae58600.tar.gz aur-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.inc | 8 |
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 * |