feat(web): use new manage permission in checks

This commit is contained in:
Ali BARIN
2025-04-01 13:56:28 +00:00
parent f4c7ca3e7f
commit 8b1ed54d54
6 changed files with 13 additions and 13 deletions

View File

@@ -67,7 +67,7 @@ export default function CreateUser() {
const roles = rolesData?.data;
const queryClient = useQueryClient();
const currentUserAbility = useCurrentUserAbility();
const canUpdateRole = currentUserAbility.can('update', 'Role');
const canUpdateRole = currentUserAbility.can('manage', 'Role');
const handleUserCreation = async (userData) => {
try {