Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
Allow package admin to retire a package
Browse files Browse the repository at this point in the history
This implements the decision of FESCo decided at:
https://fedorahosted.org/fesco/ticket/1420
  • Loading branch information
pypingou committed Mar 18, 2015
1 parent 810c34c commit 33786a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgdb2/lib/__init__.py
Expand Up @@ -584,6 +584,8 @@ def update_pkg_status(session, pkg_name, pkg_branch, status, user,
if status == 'Retired':

if pkglisting.point_of_contact != user.username \
and not pkgdb2.is_pkg_admin(
session, user, pkg_name, pkg_branch) \
and pkglisting.point_of_contact != 'orphan' \
and not pkgdb2.is_pkgdb_admin(user) \
and not pkglisting.point_of_contact.startswith('group::'):
Expand Down

0 comments on commit 33786a4

Please sign in to comment.