Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : bkabrda-workspace
commit 966c2fe900941262644e29fe795b838982558c46 Author: Bohuslav Kabrda bkabrda@redhat.com Date: Tue Nov 27 14:00:50 2012 +0100
Change the messages to also contain copr admins
.../coprs/views/coprs_ns/coprs_general.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py index a32b4e5..36c2b39 100644 --- a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py +++ b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py @@ -122,7 +122,7 @@ def copr_update(username, coprname): copr = coprs_logic.CoprsLogic.get(flask.g.user, username, coprname).first() # only owner can update a copr if not flask.g.user.can_edit(copr): - flask.flash('Only owners may update their Coprs.') + flask.flash('Only owners and admins may update their Coprs.') return flask.redirect(flask.url_for('coprs_ns.copr_detail', username = copr.owner.name, coprname = form.name.data))
if form.validate_on_submit(): @@ -173,7 +173,7 @@ def copr_update_permissions(username, coprname):
# only owner can update copr permissions if not flask.g.user.can_edit(copr): - flask.flash('Only owners may update their Coprs permissions.') + flask.flash('Only owners and admins may update their Coprs permissions.') return flask.redirect(flask.url_for('coprs_ns.copr_detail', username = copr.owner.name, coprname = copr.name))
if permissions_form.validate_on_submit():
copr-devel@lists.fedorahosted.org