Skip to content

Commit

Permalink
Merge pull request #238 from pe4cey/fix-feature-flags
Browse files Browse the repository at this point in the history
Add check to see if changeUserPassword procedure exists
  • Loading branch information
oskarhane authored Sep 21, 2016
2 parents eb8fbf2 + 76ad3ce commit 07070ad
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions app/scripts/controllers/Main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,9 @@ angular.module('neo4jApp.controllers')
else
$scope.user = $scope.static_user

if 'dbms.security.listRoles' in $scope.procedures
Features.canGetRoles = yes
else
Features.canGetRoles = no

if 'dbms.security.activateUser' in $scope.procedures
Features.canActivateUser = yes
else
Features.canActivateUser = no

Features.canGetRoles = 'dbms.security.listRoles' in $scope.procedures
Features.canActivateUser = 'dbms.security.activateUser' in $scope.procedures
Features.canChangePassword = 'dbms.security.changeUserPassword' in $scope.procedures
Features.usingCoreEdge = 'dbms.cluster.overview' in $scope.procedures

fetchJMX = ->
Expand Down

0 comments on commit 07070ad

Please sign in to comment.