https://supabase.com/ logo
#help
Title
# help
a

anand

10/03/2021, 3:43 PM
is it possible to set the return value of
auth.role()
to something else?
s

silentworks

10/03/2021, 3:46 PM
Yes this is possible, but this should never be done. What are you trying to accomplish?
a

anand

10/03/2021, 3:47 PM
Not for myself, someone on another server asked a question where they seemed to define an RLS policy that had something like
auth.role() = 'taskmanager'
😅 wanted to make sure that that was the issue
as in, their rules were faulty because auth.role() would never be equal to that value
s

silentworks

10/03/2021, 3:48 PM
Whatever you do, don't try creating a ACL with the auth functions, create your own table and deal with it that way
a

anand

10/03/2021, 3:48 PM
Yep
thanks!