# HG changeset patch # User Goffi # Date 1527858426 -7200 # Node ID f134c0ecb1d58e9516b265e6066a370fd1b2bd3c # Parent 01538d8a77bed3dacf49a40d2d1000c135c9e3b7 pages (merge-requests/view): fixed default node when checking affiliations diff -r 01538d8a77be -r f134c0ecb1d5 src/pages/merge-requests/view/page_meta.py --- 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)