fix no group see nothing
[auf_rh_dae.git] / project / rh / admin.py
index 9df0636..18250c7 100644 (file)
@@ -50,7 +50,7 @@ class ProtectRegionMixin(object):
 
     def has_change_permission(self, request, obj=None):
         user_groups = request.user.groups.all()
-        if len(user_groups) == 0:
+        if len(user_groups) == 0 and not request.user.is_superuser:
             return False
 
         if obj is None: