commit/galaxy-central: greg: Allow an admin user to manage repositories they do not own.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/0007cf69d1dc/ changeset: 0007cf69d1dc user: greg date: 2011-07-11 19:45:57 summary: Allow an admin user to manage repositories they do not own. affected #: 1 file (61 bytes) --- a/lib/galaxy/webapps/community/controllers/repository.py Mon Jul 11 13:34:23 2011 -0400 +++ b/lib/galaxy/webapps/community/controllers/repository.py Mon Jul 11 13:45:57 2011 -0400 @@ -214,7 +214,8 @@ if operation == "view_or_manage_repository": repository_id = kwd.get( 'id', None ) repository = get_repository( trans, repository_id ) - if repository.user == trans.user: + is_admin = trans.user_is_admin() + if is_admin or repository.user == trans.user: return trans.response.send_redirect( web.url_for( controller='repository', action='manage_repository', **kwd ) ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket