diff --git a/back/models/vn-user.json b/back/models/vn-user.json index 9a5d20f91..ac8b9b16e 100644 --- a/back/models/vn-user.json +++ b/back/models/vn-user.json @@ -94,17 +94,31 @@ "principalType": "ROLE", "principalId": "$everyone", "permission": "ALLOW" - }, + }, { - "property": "logout", + "property": "signOut", + "accessType": "EXECUTE", + "principalType": "ROLE", + "principalId": "$authenticated", + "permission": "ALLOW" + }, + { + "property": "recoverPassword", + "accessType": "EXECUTE", + "principalType": "ROLE", + "principalId": "$everyone", + "permission": "ALLOW" + }, + { + "property": "validateToken", "accessType": "EXECUTE", "principalType": "ROLE", "principalId": "$authenticated", "permission": "ALLOW" }, { - "property": "validateToken", - "accessType": "EXECUTE", + "property": "privileges", + "accessType": "*", "principalType": "ROLE", "principalId": "$authenticated", "permission": "ALLOW" diff --git a/modules/account/front/basic-data/index.html b/modules/account/front/basic-data/index.html index 91df3bffd..9a18aa5e3 100644 --- a/modules/account/front/basic-data/index.html +++ b/modules/account/front/basic-data/index.html @@ -1,6 +1,6 @@ diff --git a/modules/account/front/create/index.html b/modules/account/front/create/index.html index ca4a2f840..20ec767cb 100644 --- a/modules/account/front/create/index.html +++ b/modules/account/front/create/index.html @@ -1,6 +1,6 @@ diff --git a/modules/account/front/main/index.html b/modules/account/front/main/index.html index 5736b3a3b..dd3489e9f 100644 --- a/modules/account/front/main/index.html +++ b/modules/account/front/main/index.html @@ -1,6 +1,6 @@ diff --git a/modules/account/front/privileges/index.html b/modules/account/front/privileges/index.html index ba596909b..8e33b708e 100644 --- a/modules/account/front/privileges/index.html +++ b/modules/account/front/privileges/index.html @@ -1,7 +1,7 @@ @@ -30,7 +30,7 @@ vn-one label="User" ng-model="$ctrl.account.name" - rule> + rule="VnUser.name"> @@ -41,7 +41,7 @@ label="Recovery email" ng-model="$ctrl.account.email" info="This email is used for user to regain access their account." - rule> + rule="VnUser.name"> diff --git a/modules/worker/front/account/index.html b/modules/worker/front/account/index.html index d629de286..6f6be660c 100644 --- a/modules/worker/front/account/index.html +++ b/modules/worker/front/account/index.html @@ -5,7 +5,7 @@