#6938 add scope & acls #2301

Merged
jorgep merged 7 commits from 6938-hideWorkerPhone into dev 2024-04-16 06:38:47 +00:00
2 changed files with 2 additions and 4 deletions
Showing only changes of commit 200cbd8d74 - Show all commits

View File

@ -1,4 +1,4 @@
UPDATE salix.ACL SET principalId = "hr" WHERE property IN ('find','findById','findOne') AND model = "Worker"; UPDATE salix.ACL SET principalId = "hr" WHERE property IN ('find','findById','findOne') AND model = "Worker";
INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId) INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId)
VALUES ('Worker', 'summary', 'READ', 'ALLOW', 'ROLE', 'employee'); VALUES ('Worker', '__get__summary', 'READ', 'ALLOW', 'ROLE', 'employee');

View File

@ -96,7 +96,6 @@
"scopes":{ "scopes":{
"summary": { "summary": {
"fields": [ "fields": [
[
"id", "id",
"firstName", "firstName",
"lastName", "lastName",
@ -112,8 +111,7 @@
"birth", "birth",
"isF11Allowed" "isF11Allowed"
] ]
,
],
"include": [ "include": [
{ {
"relation": "user", "relation": "user",