#7995: Added hasAcl to check only one acl #1654
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1654
Loading…
Reference in New Issue
No description provided.
Delete Branch "7995-CreateHasAcl"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -32,1 +32,4 @@
function hasAcl(model, props, accessType) {
const modelAcl = state.getAcls().value[model];
const access = modelAcl[props];
const propAcl
@ -33,0 +35,4 @@
const access = modelAcl[props];
if (!modelAcl || !access) return false;
if (access[accessType] || access['*']) {
return true;
Tienes que verificar que sea la prop que tu indicas o * y lo mismo con accessType. Port tanto tendrás que comprobar:
Tiene que cumplirse 1 de las condiciones, si no, devolver false
WIP: #7995: Added hasAcl to check only one aclto #7995: Added hasAcl to check only one aclNew commits pushed, approval review dismissed automatically according to repository settings