Browse Source

HUE-8350 [solr] indexer app permission is not being acknowledged in HUE(Hue4)

Roohi 7 years ago
parent
commit
63b5726554
2 changed files with 2 additions and 2 deletions
  1. 1 1
      desktop/core/src/desktop/models.py
  2. 1 1
      desktop/libs/indexer/src/indexer/views.py

+ 1 - 1
desktop/core/src/desktop/models.py

@@ -1769,7 +1769,7 @@ class ClusterConfig():
         'page': '/metastore/tables'
       })
 
-    if 'search' in self.apps and self.cluster_type != ANALYTIC_DB:
+    if 'indexer' in self.apps and self.cluster_type != ANALYTIC_DB:
       interpreters.append({
         'type': 'indexes',
         'displayName': _('Indexes'),

+ 1 - 1
desktop/libs/indexer/src/indexer/views.py

@@ -44,7 +44,7 @@ def collections(request, is_redirect=False):
 
 
 def indexes(request, index=''):
-  if not request.user.has_hue_permission(action="access", app='search'):
+  if not request.user.has_hue_permission(action="access", app='indexer'):
     raise PopupException(_('Missing permission.'), error_code=403)
 
   return render('indexes.mako', request, {