REVOKE ALL ON FUNCTION public.has_role(uuid, public.app_role) FROM PUBLIC, anon;
REVOKE ALL ON FUNCTION public.is_aprovado(uuid) FROM PUBLIC, anon;
REVOKE ALL ON FUNCTION public.registrar_perfil() FROM PUBLIC, anon;
REVOKE ALL ON FUNCTION public.set_updated_at() FROM PUBLIC, anon, authenticated;

GRANT EXECUTE ON FUNCTION public.has_role(uuid, public.app_role) TO authenticated;
GRANT EXECUTE ON FUNCTION public.is_aprovado(uuid) TO authenticated;
GRANT EXECUTE ON FUNCTION public.registrar_perfil() TO authenticated;