B
B
borisovdenis2017-09-06 17:31:52
Django
borisovdenis, 2017-09-06 17:31:52

How to implement three user roles/types in Django?

A Django application requires three user roles to be supported. Each role naturally has its own privileges or limitations. There is an idea to do it this way: override the standard user model by adding the role field, which will be responsible for the user's role. And then for each operation to check whether the given user has the necessary role.
The question is how best to implement this? Tell me please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Matveev, 2017-09-06
@Shlem

What about standard user groups? There you can share powers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question