Przeglądaj źródła

[connector] Set Edit user permission to always off until supported

Romain Rigaux 4 lat temu
rodzic
commit
941a7c1d24
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      apps/useradmin/src/useradmin/models.py

+ 1 - 1
apps/useradmin/src/useradmin/models.py

@@ -111,7 +111,7 @@ class UserProfile(models.Model):
     if self.user.is_superuser:
       return True
     if ENABLE_CONNECTORS.get() and app in ('jobbrowser', 'metastore', 'filebrowser', 'indexer', 'useradmin', 'notebook'):
-      if app == 'useradmin' and action == 'superuser':
+      if app == 'useradmin' and action in ('superuser', 'access_view:useradmin:edit_user'):  # Not implemented yet
         return False
       else:
         return True