🐛 Fix sorting of permissions in ETag calculation

This commit is contained in:
Gina Häußge committed 2020-06-30 17:53:50 +02:00
1 parent 3846a55c5e
commit 637f34162f
1 file changed
+1 -1
+1 -1
View File
@@ -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 = []