Mercurial > libervia-web
diff src/pages/merge-requests/view/page_meta.py @ 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 | 7d5633ccbaf2 |
children | 01e95ec9df9e |
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)