Forbidden url redirect

Hello,

I have an API that checks whether a member is logged in or not. After this API works, when I click on the link, it always redirects to the forbidden url. Even if the member is logged in, it goes to that url. What should I do?


lr2
It returns "403" when logged in,
Here you can see the route file and api,
Thanks in advance.

Most probably your logged user permission doesn't match the permission you require: Member

Where can I find these permission levels?

Well in the security provider settings, you set them up there.

1 Like

Thanks!

lr3

It works fine when there is only one value in the permission section, but it does not work when I enter 2 values ​​in this way.

Well your user needs both permissions this way.
Note this is not Roles, but Permissions. You might want to rethink the way you set up your permissions.

1 Like

Hey @mnt93, it may be more complicated than what you're looking for, but here's how I implemented a role based system.

2 Likes

Hey, it was working before I update wappler, now it doesn’t idk why :slightly_smiling_face:
I will check it, thank you