fix: refs #6938 acls & scope
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-04-15 11:03:57 +02:00
parent 0219fa105e
commit 200cbd8d74
2 changed files with 2 additions and 4 deletions

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