🐛 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:
1 parent
7147062d9a
commit
22315b1742
1 file changed
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user