mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add a new user group "Trusted User & Developer"
This group has full permissions on everything. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
1b901616dc
commit
3610f3c6a4
7 changed files with 26 additions and 5 deletions
|
@ -338,6 +338,9 @@ function search_results_page($O=0,$SB="",$U="",$T="",
|
|||
} elseif ($T == "d") {
|
||||
$q.= "AND AccountTypes.ID = 3 ";
|
||||
$search_vars[] = "T";
|
||||
} elseif ($T == "td") {
|
||||
$q.= "AND AccountTypes.ID = 4 ";
|
||||
$search_vars[] = "T";
|
||||
}
|
||||
if ($S) {
|
||||
$q.= "AND Users.Suspended = 1 ";
|
||||
|
@ -1080,7 +1083,8 @@ function cast_proposal_vote($voteid, $uid, $vote, $newtotal) {
|
|||
* @return bool True if permission to edit the account, otherwise false
|
||||
*/
|
||||
function can_edit_account($acctinfo) {
|
||||
if ($acctinfo['AccountType'] == 'Developer') {
|
||||
if ($acctinfo['AccountType'] == 'Developer' ||
|
||||
$acctinfo['AccountType'] == 'Trusted User & Developer') {
|
||||
return has_credential(CRED_ACCOUNT_EDIT_DEV);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue