Hi,
This is a question about the best way to develop an application with
different user rights.
According to the user rights, i want to display the same views but with
small differences (like additional buttons if the user is an admin,
moderator, etc).
The problem (I think) is that I’ve put a lot of logic in my views (if
admin
then… else… etc). is that the best way to deal with user rights in
the views?
look into acts as authenticated plugin. checkout how the admin/user has
their own view. you can just basiclly take your public view, copy it
into the admin view and add all the buttons youd like.
Nicolas B. wrote:
Hi,
This is a question about the best way to develop an application with
different user rights.
According to the user rights, i want to display the same views but with
small differences (like additional buttons if the user is an admin,
moderator, etc).
The problem (I think) is that I’ve put a lot of logic in my views (if
admin
then… else… etc). is that the best way to deal with user rights in
the views?