M
M
Miri_Skava2018-11-16 22:01:06
Yii
Miri_Skava, 2018-11-16 22:01:06

How to divide the project into three roles: student, teacher and administrator?

Hello!
Please tell me how should the project structure with three roles look like?
I read somewhere that if in the advanced template, then we create the third role by copying the frontend'a or backend'a, but for some reason I'm not sure that this is the right decision

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2018-11-16
@slo_nik

Good evening.
You need to use rbac.
The simplest sign is described in this article .
In the article you will find some more interesting links on the topic.

V
Vladislav Lyskov, 2018-11-17
@Vlatqa

basic and advanced are not from that opera at all, you need to look towards rbac (role-based access rights distribution)

M
Maxim Timofeev, 2018-11-18
@webinar

frontend and backend are not roles, they are applications. Separated with their own config, etc. Roles are completely irrelevant.
User roles are made via RBAC

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question