Checking permissions
I'm having some trouble understanding how
hasPermission
works. This is my code currently:
Is this proper and why am I getting an error that my permission doesn't exist?5 Replies
If I do the check using the api call in my server component I get the same error.
@coder2000
its
ac: accessControl
Ok.
But otherwise creating a constant with the permission response will work?
I dont know, I dont use this plugin
I just looked through the code and found your issue
try what you want to do and tell me if it doesnt work
No worries, thanks for the assist.