Learn more about these different git repos.
Other Git URLs
In the repo.py controller we use multiple times the following code:
repo.py
if admin_session_timedout(): flask.flash('Action canceled, try it again', 'error') url = flask.url_for( 'view_settings', username=username, repo=repo, namespace=namespace) return flask.redirect( flask.url_for('auth_login', next=url)) repo = flask.g.repo if not repo.settings.get('issue_tracker', True): flask.abort(404, 'No issue tracker found for this project') if not flask.g.repo_admin: flask.abort( 403, 'You are not allowed to change the settings for this project')
We could simplify the code using a decorator or a single utility method.
Metadata Update from @pingou: - Issue tagged with: RFE
Fixed by @cverna in https://pagure.io/pagure/pull-request/2882
Metadata Update from @pingou: - Issue assigned to cverna - Issue close_status updated to: Fixed
Login to comment on this ticket.