feat(salix): refs #6427 Disable field when is not owner
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-04-18 10:03:39 +02:00
parent 383433766e
commit 9a7bee8ded
2 changed files with 3 additions and 2 deletions

View File

@ -99,7 +99,7 @@
{ {
"relation": "user", "relation": "user",
"scope": { "scope": {
"fields": ["email", "name", "nickname", "roleFk"], "fields": ["email", "name", "nickname", "roleFk", "name", "emailVerified","recoveryPhone"],
"include": [ "include": [
{ {
"relation": "role", "relation": "role",
@ -127,7 +127,7 @@
}, { }, {
"relation": "client", "relation": "client",
"scope": { "scope": {
"fields": [ "fields": [
"id", "id",
"name", "name",
"fi", "fi",

View File

@ -79,6 +79,7 @@
vn-one vn-one
label="Recovery phone" label="Recovery phone"
ng-model="$ctrl.worker.user.recoveryPhone" ng-model="$ctrl.worker.user.recoveryPhone"
disabled="$root.user.id !== $ctrl.worker.id"
> >
</vn-textfield> </vn-textfield>
<vn-input-number <vn-input-number