D
D
des1roer2015-02-11 14:35:15
Yii
des1roer, 2015-02-11 14:35:15

Yupe complex authorization by department number and role?

Literally today I installed yupe, but I see that in the standard kit the separation is somehow frail. admin\user. How so? After all, yii is a very flexible system and it is not only for blogs and online stores.
Tell me - bite a leg from a stool and rake a standard yii, break yupe, or are there ready-made solutions?
Mlyn is such a system, but there is no worthy implementation in the standard functionality?
In general, the idea is the following - I manually enter users into the mysql database. they should have the following fields id,login,pass,role,id_page. I hate this email field!!!! how to turn it off?
in general, based on the role and the id of the allowed page, the PHP script should give it different pages (page id) with different functionality (role). post or get there.
What's the funniest thing is that such functionality is written in pure PHP in a couple of evenings with beer, but it is not in a cool CMS?
Who really faced / solves this problem?
UPD
Authentication based on user base data is required. at the same time, if the role is a master, then he can add lines to the database (suppose some devices), to his workshop. and the role of an electrician - he can view the data of his section (the workshop consists of sections), and edit some parameters of the data entered by the master in his section (and only some, he cannot delete records and change the serial number, he can change the number, suppose the state). and we get a hierarchical structure - the administrator can do everything, the management can watch all the workshops. the foreman watches and corrects his workshop (also with restrictions, he does not have the opportunity to delete the record). and the electrician looks at his site and can edit the status field (broken, under repair, working)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
des1roer, 2015-04-08
@des1roer

I realized that yupe does not cover all tasks. used yii
des1roer.blogspot.ru/2015/03/yii-rbac.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question