How can i restrict a page to certain user roles?

Question

I would like to know how can i restrict a certain page to be shown only to specific user roles & also show an error message that the user is not allowed to view this page if the user role is otherwise.

Any help will be appreciated.

0
Hayder Allawi 4 months 0 Answers 21 views 0

Leave an answer