fix(acl): invalid action permission judgment (#3735)
* fix: x-acl-action is missing in action schema * fix: useACLRoleContext * fix: useACLRoleContext * fix: useACLRoleContext
This commit is contained in:
parent
820352f280
commit
4cf560b177
@ -151,7 +151,7 @@ const useAllowedActions = () => {
|
||||
const useResourceName = () => {
|
||||
const service = useResourceActionContext();
|
||||
const result = useBlockRequestContext() || { service };
|
||||
return result?.props?.resource || result?.service?.defaultRequest?.resource;
|
||||
return result?.props?.resource || result?.props?.collection || result?.service?.defaultRequest?.resource;
|
||||
};
|
||||
|
||||
export function useACLRoleContext() {
|
||||
|
Loading…
Reference in New Issue
Block a user