I
I
IsaevDev2017-02-09 00:17:06
Information Security
IsaevDev, 2017-02-09 00:17:06

Where is the best place to check user rights?

Let's say the user has a certain set of rights - editing, moderation, etc.
Where would you advise to check the availability of rights - in the controller before trying to update the model and immediately transfer to the desired View or check the rights in the model, then watch the errors from the controller and then decide what to do?
How is it more correct from the point of view of MVC?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2017-02-09
@vitali1995

In the controller - it is the controller of incoming requests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question