X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-FE-common%2Fclient%2Fapp%2Fviews%2Frole%2Frole-controller.js;fp=ecomp-portal-FE-common%2Fclient%2Fapp%2Fviews%2Frole%2Frole-controller.js;h=7be5118ad16782c78a96cd18450378e261c28488;hb=b75f35b0a1824aab32b4329fa62076b0f0307853;hp=f55d1e0e0b1d6ea13a40da361c042a6af54e9695;hpb=4027435c28e1433df2476b83a6e77ba4d1d865bd;p=portal.git 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 f55d1e0e..7be5118a 100644 --- 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."); + } 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;