Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Application Onboarding page changes
[portal.git]
/
ecomp-portal-FE-common
/
client
/
app
/
views
/
role
/
role-controller.js
diff --git
a/ecomp-portal-FE-common/client/app/views/role/role-controller.js
b/ecomp-portal-FE-common/client/app/views/role/role-controller.js
index
f55d1e0
..
7be5118
100644
(file)
--- a/
ecomp-portal-FE-common/client/app/views/role/role-controller.js
+++ b/
ecomp-portal-FE-common/client/app/views/role/role-controller.js
@@
-114,6
+114,8
@@
app.controller('roleController', function ($scope, $http, confirmBoxService, ngD
}
if (exists) {
confirmBoxService.showInformation( "Role already exists.");
}
if (exists) {
confirmBoxService.showInformation( "Role already exists.");
+ } else if($scope.role.name.toLowerCase() == "admin"){
+ confirmBoxService.showInformation( "Role '"+$scope.role.name+"' is not acceptable.");
}
else {
var uuu = conf.api.saveRole + "?role_id="+$stateParams.roleId;
}
else {
var uuu = conf.api.saveRole + "?role_id="+$stateParams.roleId;