Ver Fonte

HUE-8530 [organization] Do not 403 when there is no snippet configured

Romain há 5 anos atrás
pai
commit
0f33c41cd3
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      apps/useradmin/src/useradmin/models.py

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

@@ -112,7 +112,7 @@ class UserProfile(models.Model):
         return self.user.is_superuser
     if self.user.is_superuser:
       return True
-    if ENABLE_CONNECTORS.get() and app in ('jobbrowser', 'metastore', 'filebrowser', 'indexer', 'useradmin'):
+    if ENABLE_CONNECTORS.get() and app in ('jobbrowser', 'metastore', 'filebrowser', 'indexer', 'useradmin', 'notebook'):
       return True
 
     group_ids = self.user.groups.values_list('id', flat=True)