Skip to content

Commit

Permalink
#67 Make role case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Dec 30, 2016
1 parent 296155e commit 2af941a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/scripts/controllers/RootCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ angular.module('theHiveControllers').controller('RootCtrl',

$scope.isAdmin = function(user) {
var u = user;
var re = /admin/;
var re = /admin/i;
return re.test(u.roles);
};

Expand Down

0 comments on commit 2af941a

Please sign in to comment.