misc: consider all roles prefixed with _ as internals (#36504)

This commit is contained in:
Frédéric Péters 2019-09-28 13:52:43 +02:00
parent b7b0b93e7a
commit 588dcfb95c
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ class ServiceRoleSearchForm(CssClass, PrefixFormMixin, FormWithRequest):
if self.cleaned_data.get('text'):
qs = qs.filter(name__icontains=self.cleaned_data['text'])
if not app_settings.SHOW_INTERNAL_ROLES and not self.cleaned_data.get('internals'):
qs = qs.exclude(slug__startswith='_a2')
qs = qs.exclude(slug__startswith='_')
return qs