🐛 Fix sorting of permissions in ETag calculation
This commit is contained in:
1 parent
3846a55c5e
commit
637f34162f
1 file changed
+1
-1
@@ -41,7 +41,7 @@ def _etag(lm=None):
|
||||
sorted_plugin_settings[key] = plugin_settings.get(key, dict())
|
||||
|
||||
if current_user is not None and not current_user.is_anonymous:
|
||||
roles = sorted(current_user.permissions)
|
||||
roles = sorted(current_user.permissions, key=lambda x: x.key)
|
||||
else:
|
||||
roles = []
|
||||
|
||||
|
||||
Reference in new issue
Block a user