#4074 useAcls #584

Merged
jorgep merged 30 commits from 4074-useAcls into dev 2024-09-10 11:50:45 +00:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 27034d1dc2 - Show all commits

View File

@ -16,9 +16,8 @@ export function useAcl() {
state.setAcls(acls);
}
function hasAny(model, props = [], accessType) {
function hasAny(model, props, accessType) {
const acls = state.getAcls().value[model];
Array.isArray(props) || (props = [props]);
if (acls)
return ['*', ...props].some((key) => {
const acl = acls[key];