Mercurial > libervia-web
changeset 1097:f134c0ecb1d5
pages (merge-requests/view): fixed default node when checking affiliations
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Jun 2018 15:07:06 +0200 |
parents | 01538d8a77be |
children | 01e95ec9df9e |
files | src/pages/merge-requests/view/page_meta.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pages/merge-requests/view/page_meta.py Fri Jun 01 13:04:57 2018 +0200 +++ b/src/pages/merge-requests/view/page_meta.py Fri Jun 01 15:07:06 2018 +0200 @@ -71,7 +71,7 @@ is_publisher = publisher.userhostJID() == session.jid.userhostJID() affiliation = None if not is_publisher: - node = node or self.host.ns_map['tickets'] + node = node or self.host.ns_map['merge_requests'] affiliation = yield self.host.getAffiliation(request, service, node) if is_publisher or affiliation == 'owner': template_data[u'url_ticket_edit'] = self.getURLByPath(SubPage('merge-requests'), service.full(), node or u'@', SubPage('merge-requests_edit'), ticket_id)