integrations: fix bug with integrations view page not loading
when non global admin tries to access it, fixes #4266
This commit is contained in:
parent
95952e7709
commit
b8d4482f30
1 changed files with 3 additions and 2 deletions
|
|
@ -329,13 +329,14 @@ class IntegrationSettingsViewBase(object):
|
|||
|
||||
integrations = []
|
||||
|
||||
for integration in IntegrationModel().get_integrations(
|
||||
for IntType, integration in IntegrationModel().get_integrations(
|
||||
scope=scope, IntegrationType=self.IntegrationType):
|
||||
|
||||
# extra permissions check *just in case*
|
||||
if not self._has_perms_for_integration(integration):
|
||||
continue
|
||||
integrations.append(integration)
|
||||
|
||||
integrations.append((IntType, integration))
|
||||
|
||||
sort_arg = self.request.GET.get('sort', 'name:asc')
|
||||
if ':' in sort_arg:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue