Allow force push for app
This commit is contained in:
parent
3976735230
commit
bbd74eabd1
4 changed files with 53 additions and 55 deletions
|
@ -196,7 +196,6 @@ def push(namespace, package_name):
|
|||
{"package": reponame, "scopes": ['create']})
|
||||
Package.create_repository(reponame, private, owner)
|
||||
|
||||
|
||||
if not ModifyRepositoryPermission(namespace, package_name).can():
|
||||
raise UnauthorizedAccess("Unauthorized access for: %s" % reponame,
|
||||
{"package": reponame, "scopes": ['push']})
|
||||
|
|
Reference in a new issue