Role-Based Access Control (RBAC) for Self-hosted | Beginner Questions #22272
Unanswered
rexhibition
asked this question in
Questions
Replies: 1 comment 1 reply
-
Did you ever get this to work? Running in to this now |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am a beginner and I have been sleepless to get this whole things to work. But it's just not possible. I am so furstrated so if anyone can help, I would be deeply grateful for it.
What I did:
Clone this Slack-clone.
Paste the "Create Auth Hook to Apply User Role" codes to the SQL Editor on Supabase.
Enable the hook... This part I saw the config,toml file already have the code so I didn't do anything.
The last step seems to already be done so I didn't do anything. I run the app and the register, sign in, write text, etc. work except that the app doesn't recognize the role so it doesn't allow admin or moderator account to delete anything (not even the icon is out). The token in the log doesn't have any custom claim in it.
I am very desparate now. Please help :(
Beta Was this translation helpful? Give feedback.
All reactions