diff options
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/acctfuncs.inc.php | 6 | ||||
-rw-r--r-- | web/lib/credentials.inc.php | 12 |
2 files changed, 13 insertions, 5 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index 578c3764..73d01a56 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -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); } diff --git a/web/lib/credentials.inc.php b/web/lib/credentials.inc.php index 22068e4c..47dd3fdd 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; |