mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove can_submit_blacklisted()
This function is unneeded since commit 74edb6f
(Use Git repositories to
store packages, 2014-06-06).
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
ec7e163699
commit
2d7b68ac4c
2 changed files with 0 additions and 14 deletions
|
@ -15,7 +15,6 @@ define("CRED_PKGBASE_EDIT_COMAINTAINERS", 24);
|
||||||
define("CRED_PKGBASE_FLAG", 11);
|
define("CRED_PKGBASE_FLAG", 11);
|
||||||
define("CRED_PKGBASE_LIST_VOTERS", 12);
|
define("CRED_PKGBASE_LIST_VOTERS", 12);
|
||||||
define("CRED_PKGBASE_NOTIFY", 13);
|
define("CRED_PKGBASE_NOTIFY", 13);
|
||||||
define("CRED_PKGBASE_SUBMIT_BLACKLISTED", 14);
|
|
||||||
define("CRED_PKGBASE_UNFLAG", 15);
|
define("CRED_PKGBASE_UNFLAG", 15);
|
||||||
define("CRED_PKGBASE_VOTE", 16);
|
define("CRED_PKGBASE_VOTE", 16);
|
||||||
define("CRED_PKGREQ_FILE", 23);
|
define("CRED_PKGREQ_FILE", 23);
|
||||||
|
@ -65,7 +64,6 @@ function has_credential($credential, $approved_users=array()) {
|
||||||
case CRED_PKGBASE_EDIT_COMAINTAINERS:
|
case CRED_PKGBASE_EDIT_COMAINTAINERS:
|
||||||
case CRED_PKGBASE_DISOWN:
|
case CRED_PKGBASE_DISOWN:
|
||||||
case CRED_PKGBASE_LIST_VOTERS:
|
case CRED_PKGBASE_LIST_VOTERS:
|
||||||
case CRED_PKGBASE_SUBMIT_BLACKLISTED:
|
|
||||||
case CRED_PKGBASE_UNFLAG:
|
case CRED_PKGBASE_UNFLAG:
|
||||||
case CRED_PKGREQ_CLOSE:
|
case CRED_PKGREQ_CLOSE:
|
||||||
case CRED_PKGREQ_LIST:
|
case CRED_PKGREQ_LIST:
|
||||||
|
|
|
@ -42,18 +42,6 @@ function can_delete_comment_array($comment) {
|
||||||
return has_credential(CRED_COMMENT_DELETE, array($comment['UsersID']));
|
return has_credential(CRED_COMMENT_DELETE, array($comment['UsersID']));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Determine if the visitor can submit blacklisted packages.
|
|
||||||
*
|
|
||||||
* Only Trusted Users and Developers can delete blacklisted packages. Packages
|
|
||||||
* are blacklisted if they are include in the official repositories.
|
|
||||||
*
|
|
||||||
* @return bool True if the user can submit blacklisted packages, otherwise false
|
|
||||||
*/
|
|
||||||
function can_submit_blacklisted() {
|
|
||||||
return has_credential(CRED_PKGBASE_SUBMIT_BLACKLISTED);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check to see if the package name already exists in the database
|
* Check to see if the package name already exists in the database
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue