🐛 Fix error message for wrong permissions on plugins

Instead of dumping the permission object, dump the
default text in the error.

As mentioned in #4670
This commit is contained in:
Gina Häußge committed 2022-10-27 11:40:39 +02:00
1 parent 7147062d9a
commit 22315b1742
1 file changed
+1 -1
+1 -1
View File
@@ -185,7 +185,7 @@ class PluginIdentityContext:
# check the permission here
if not permission.can():
if self.http_exception:
abort(self.http_exception, permission)
abort(self.http_exception)
raise PermissionDenied(permission)
def __exit__(self, *args):