insert missing if for can_access_base_mapdata
@@ -149,6 +149,7 @@ def edit(request, pk=None, model=None, level=None, space=None, on_top_of=None, e
if level is not None:
kwargs.update({'level__pk': level})
qs = qs.select_related('level')
+ if not request.user_permissions.can_access_base_mapdata:
can_edit = False
elif space is not None:
kwargs.update({'space__pk': space})
