A
A
Alexander Wolf2014-04-15 22:49:21
Yii
Alexander Wolf, 2014-04-15 22:49:21

How to organize access control in Yii?

Hello! My users are stored in the following table:

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(255) NOT NULL AUTO_INCREMENT,
  `nick` varchar(50) NOT NULL,
  `mail` varchar(255) NOT NULL,
  `fName` varchar(255) DEFAULT NULL,
  `mName` varchar(255) DEFAULT NULL,
  `lName` varchar(255) DEFAULT NULL,
  `salt` varchar(255) NOT NULL,
  `pwd` varchar(255) NOT NULL,
  `group` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

There are elementary groups (admin, buyer, client, manager).
How do I create groups, roles, operations, etc.?
I'm just starting to learn Yii.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andruxin, 2014-04-15
@mannaro

There is no need to figure it out yourself yet, but people send RBAC to smoke.
www.simplecoding.org/yii-php-framework-control-dos...
habrahabr.ru/post/177873
yiiframework.ru/doc/cookbook/ru/access.rbac.file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question