#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 0 deletions
Showing only changes of commit fb496d7fc6 - Show all commits

View File

@ -18,6 +18,7 @@ export function useAcl() {
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];