api: added proper full permission flush on API calls when creating repos and repo groups.

- This allows a full flush and multiple calls made via API
This commit is contained in:
RhodeCode Admin 2021-05-24 23:47:29 +02:00
parent 56421dc214
commit 9f13849af9
5 changed files with 10 additions and 13 deletions

View file

@ -131,7 +131,7 @@ class IntegrationTypeBase(object):
:param event:
:return: bool
"""
allowed_events = self.settings['events']
allowed_events = self.settings.get('events') or []
if event.name not in allowed_events:
log.debug('event ignored: %r event %s not in allowed set of events %s',
event, event.name, allowed_events)