AC-183 Fixed issues on permissions form.

This commit is contained in:
chouseknecht
2013-07-03 14:02:52 -04:00
parent 4256631362
commit 7d23d29eaf
2 changed files with 6 additions and 2 deletions

View File

@@ -193,6 +193,10 @@ function PermissionsEdit ($scope, $rootScope, $compile, $location, $log, $routeP
scope.category = 'Deploy';
if (data['permission_type'] != 'run' && data['permission_type'] != 'check' ) {
scope.category = 'Inventory';
scope.projectrequired = false;
}
else {
scope.projectrequired = true;
}
master['category'] = scope.category;