summaryrefslogtreecommitdiffstats
path: root/web/lib/credentials.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-07-15 22:49:18 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-07-15 22:58:57 +0200
commit3610f3c6a4e37f79139ffb38eebf0d00cd6add6d (patch)
treecf0ad514743f5d9e75df439a0294f2cd7317c593 /web/lib/credentials.inc.php
parent1b901616dc355cbab286ece18ca2c9c9e19d3415 (diff)
downloadaurweb-3610f3c6a4e37f79139ffb38eebf0d00cd6add6d.tar.xz
Add a new user group "Trusted User & Developer"
This group has full permissions on everything. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/credentials.inc.php')
-rw-r--r--web/lib/credentials.inc.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/web/lib/credentials.inc.php b/web/lib/credentials.inc.php
index 22068e4..47dd3fd 100644
--- a/web/lib/credentials.inc.php
+++ b/web/lib/credentials.inc.php
@@ -48,7 +48,8 @@ function has_credential($credential, $approved_users=array()) {
case CRED_PKGBASE_NOTIFY:
case CRED_PKGBASE_VOTE:
return ($atype == 'User' || $atype == 'Trusted User' ||
- $atype == 'Developer');
+ $atype == 'Developer' ||
+ $atype == 'Trusted User & Developer');
case CRED_ACCOUNT_CHANGE_TYPE:
case CRED_ACCOUNT_EDIT:
case CRED_ACCOUNT_LAST_LOGIN:
@@ -63,13 +64,16 @@ function has_credential($credential, $approved_users=array()) {
case CRED_PKGBASE_UNFLAG:
case CRED_PKGREQ_CLOSE:
case CRED_PKGREQ_LIST:
- return ($atype == 'Trusted User' || $atype == 'Developer');
+ return ($atype == 'Trusted User' || $atype == 'Developer' ||
+ $atype == 'Trusted User & Developer');
case CRED_TU_ADD_VOTE:
case CRED_TU_LIST_VOTES:
case CRED_TU_VOTE:
- return ($atype == 'Trusted User');
+ return ($atype == 'Trusted User' ||
+ $atype == 'Trusted User & Developer');
case CRED_ACCOUNT_EDIT_DEV:
- return ($atype == 'Developer');
+ return ($atype == 'Developer' ||
+ $atype == 'Trusted User & Developer');
}
return false;