Allow selected users view a route

Hi! Is there a way to allow only users with certain permission to view a given route in express? Thanks in advance!

Hey there @Hexin, I apologize for the delay.

I understand this question was asked some time ago but I wanted to suggest giving RBAC (Role Based Access Control) a look!

Essentially, a role is a collection of permissions that you can apply to users. Using roles makes it easier to add, remove, and adjust permissions than assigning permissions to users individually. As your user base increases in scale and complexity, roles become particularly useful.

I would be happy to work with you on this front if you have any questions. I will keep this topic open for ten days unless I hear otherwise from you.Thank you!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.