S
S
serikd2016-02-25 14:54:49
Yii
serikd, 2016-02-25 14:54:49

Which implementation of user management to choose?

Please tell me what is better to choose for user management. Yii2 RBAC or create table for example

CREATE TABLE user_group (
    id integer NOT NULL,
    group_name character varying(255) NOT NULL,
    is_admin boolean DEFAULT false NOT NULL,
    allow_moderate boolean DEFAULT false NOT NULL,
    allow_post boolean DEFAULT false NOT NULL
);

And already in actions to check ? And if possible for and against these implementations. Thank you. if (allow_moderate === true) ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2016-02-25
@serikd

RBAC think no further. It has decent enough performance in Yii. And most importantly, it is out of the box, maintained and updated by the Yii community on GitHub.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question