add is_superuser to editor etag func
@@ -56,5 +56,6 @@ def etag_func(request, *args, **kwargs):
request.changeset = changeset
return (get_language() + ':' + changeset.raw_cache_key_by_changes + ':' +
- AccessPermission.cache_key_for_request(request, with_update=False) + ':' +
- str(request.user.pk or 0) + ':' + str(int(request.user_permissions.can_access_base_mapdata)))
+ AccessPermission.cache_key_for_request(request, with_update=False) + ':' + str(request.user.pk or 0)
+ + ':' + str(int(request.user_permissions.can_access_base_mapdata))
+ + ':' + str(int(request.user.is_superuser)))
