update permission list command language

This commit is contained in:
John Mitchell 2015-04-06 11:44:15 -04:00
parent ce31b98635
commit 47e045e9fe
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ export function PermissionsList($scope, $rootScope, $location, $log, $routeParam
// if the permission includes adhoc (and is not admin), display that
$scope.getPermissionText = function () {
if (this.permission.permission_type !== "admin" && this.permission.run_ad_hoc_commands) {
return this.permission.permission_type + " + ad hoc";
return this.permission.permission_type + " + run commands";
} else {
return this.permission.permission_type;
}

View File

@ -297,7 +297,7 @@ export function UsersEdit($scope, $rootScope, $compile, $location, $log, $routeP
// if the permission includes adhoc (and is not admin), display that
$scope.getPermissionText = function () {
if (this.permission.permission_type !== "admin" && this.permission.run_ad_hoc_commands) {
return this.permission.permission_type + " + ad hoc";
return this.permission.permission_type + " + run commands";
} else {
return this.permission.permission_type;
}