web/flows: fix error during error handling
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
"""Repair missing permissions"""
|
||||
from django.core.management.base import BaseCommand, no_translations
|
||||
from django.apps import apps
|
||||
from django.contrib.auth.management import create_permissions
|
||||
from django.core.management.base import BaseCommand, no_translations
|
||||
|
||||
|
||||
class Command(BaseCommand): # pragma: no cover
|
||||
|
||||
@ -372,10 +372,11 @@ class Outpost(ManagedModel):
|
||||
Event.new(
|
||||
action=EventAction.SYSTEM_EXCEPTION,
|
||||
message=(
|
||||
"While setting the permissions for the service-account, a permission "
|
||||
"was not found: "
|
||||
"Check https://goauthentik.io/docs/troubleshooting/missing_permission"
|
||||
) + exception_to_string(exc),
|
||||
"While setting the permissions for the service-account, a "
|
||||
"permission was not found: Check "
|
||||
"https://goauthentik.io/docs/troubleshooting/missing_permission"
|
||||
)
|
||||
+ exception_to_string(exc),
|
||||
).set_user(user).save()
|
||||
else:
|
||||
app_label, perm = model_or_perm.split(".")
|
||||
|
||||
Reference in New Issue
Block a user