fix(users): "No permissions" error when users without user management permissions view their profile (#6382)

This commit is contained in:
YANG QIA 2025-03-07 11:38:26 +08:00 committed by GitHub
parent af4959cee7
commit 0bce6fe1dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,7 @@ const useUpdateProfileActionProps = () => {
const useEditProfileFormBlockDecoratorProps = () => {
const { data } = useCurrentUserContext() || {};
return {
filterByTk: data?.data?.id,
record: data?.data,
};
};