#7995: Added hasAcl to check only one acl #1654

Merged
jon merged 10 commits from 7995-CreateHasAcl into dev 2025-04-01 11:24:36 +00:00
Member
No description provided.
jon added 1 commit 2025-03-28 08:29:12 +00:00
jorgep reviewed 2025-03-28 13:08:11 +00:00
@ -32,1 +32,4 @@
function hasAcl(model, props, accessType) {
const modelAcl = state.getAcls().value[model];
const access = modelAcl[props];
Member

const propAcl

**const propAcl**
jorgep marked this conversation as resolved
jorgep reviewed 2025-03-28 13:08:54 +00:00
@ -33,0 +35,4 @@
const access = modelAcl[props];
if (!modelAcl || !access) return false;
if (access[accessType] || access['*']) {
return true;
Member

Tienes que verificar que sea la prop que tu indicas o * y lo mismo con accessType. Port tanto tendrás que comprobar:

  • ¿Existe prop y accessType?
  • ¿Existe * y accessType?
  • ¿Existe prop y *?
  • ¿Existe * y *?

Tiene que cumplirse 1 de las condiciones, si no, devolver false

Tienes que verificar que sea la prop que tu indicas o * y lo mismo con accessType. Port tanto tendrás que comprobar: - ¿Existe prop y accessType? - ¿Existe * y accessType? - ¿Existe prop y *? - ¿Existe * y *? Tiene que cumplirse 1 de las condiciones, si no, devolver false
jorgep marked this conversation as resolved
jon added 1 commit 2025-03-31 07:51:48 +00:00
gitea/salix-front/pipeline/pr-dev This commit is unstable Details
f8cc7b95ab
refactor: refs #7995 modified hasAcl function
jon added 1 commit 2025-03-31 09:32:50 +00:00
gitea/salix-front/pipeline/pr-dev This commit looks good Details
801e9687f7
Merge branch 'dev' into 7995-CreateHasAcl
jon changed title from WIP: #7995: Added hasAcl to check only one acl to #7995: Added hasAcl to check only one acl 2025-03-31 09:33:18 +00:00
jon requested review from jorgep 2025-03-31 09:33:27 +00:00
jorgep approved these changes 2025-04-01 07:24:16 +00:00
Dismissed
jorgep added 2 commits 2025-04-01 07:27:57 +00:00
jon added 2 commits 2025-04-01 07:34:46 +00:00
jon dismissed jorgep’s review 2025-04-01 07:34:46 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

jon requested review from jorgep 2025-04-01 09:31:30 +00:00
jon added 1 commit 2025-04-01 09:31:36 +00:00
gitea/salix-front/pipeline/pr-dev This commit is unstable Details
27ec560fc5
Merge branch 'dev' into 7995-CreateHasAcl
jon added 1 commit 2025-04-01 10:13:49 +00:00
gitea/salix-front/pipeline/pr-dev This commit is unstable Details
3ddc6dc310
Merge branch 'dev' into 7995-CreateHasAcl
jorgep approved these changes 2025-04-01 10:41:46 +00:00
jon added 1 commit 2025-04-01 11:01:14 +00:00
gitea/salix-front/pipeline/pr-dev This commit looks good Details
26861e92b6
Merge branch 'dev' into 7995-CreateHasAcl
jon scheduled this pull request to auto merge when all checks succeed 2025-04-01 11:01:55 +00:00
jon merged commit da21c0aad6 into dev 2025-04-01 11:24:36 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix-front#1654
No description provided.