Updated e2e

This commit is contained in:
Joan Sanchez 2023-01-25 14:14:55 +01:00
parent 388af5110f
commit 12cf79ab39
7 changed files with 26 additions and 12 deletions

View File

@ -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"

View File

@ -1,6 +1,6 @@
<vn-watcher
vn-id="watcher"
url="Accounts"
url="VnUsers"
data="$ctrl.user"
id-value="$ctrl.$params.id"
form="form">

View File

@ -1,6 +1,6 @@
<vn-watcher
vn-id="watcher"
url="Accounts"
url="VnUsers"
data="$ctrl.user"
insert-mode="true"
form="form">

View File

@ -1,6 +1,6 @@
<vn-crud-model
vn-id="model"
url="Accounts"
url="VnUsers"
filter="::$ctrl.filter"
limit="20">
</vn-crud-model>

View File

@ -1,7 +1,7 @@
<mg-ajax path="VnUsers/{{post.params.id}}/privileges" options="vnPost"></mg-ajax>
<vn-watcher
vn-id="watcher"
url="Accounts"
url="VnUsers"
data="$ctrl.user"
id-value="$ctrl.$params.id"
form="form"

View File

@ -1,6 +1,6 @@
<vn-watcher
vn-id="watcher"
url="Accounts"
url="VnUsers"
id-field="id"
data="$ctrl.account"
form="form">
@ -30,7 +30,7 @@
vn-one
label="User"
ng-model="$ctrl.account.name"
rule>
rule="VnUser.name">
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
@ -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">
</vn-textfield>
</vn-horizontal>
</vn-card>

View File

@ -5,7 +5,7 @@
</mg-ajax>
<vn-watcher
vn-id="watcher"
url="Accounts"
url="VnUsers"
id-field="id"
data="user"
form="form">