mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
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>
This commit is contained in:
parent
b5bc6ab742
commit
b22f66b3ee
5 changed files with 82 additions and 36 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue