Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Переделать роли #19

Open
solodyagin opened this issue Dec 15, 2016 · 1 comment
Open

Переделать роли #19

solodyagin opened this issue Dec 15, 2016 · 1 comment

Comments

@solodyagin
Copy link
Contributor

solodyagin commented Dec 15, 2016

Переделать роли таким образом, что чем больше цифра, тем больше прав.
Например, полные права "99", минимальные права "1".
Делать проверку наподобие:
$user->getMinRole(5), т.е. проверяем: "есть ли у пользователя роль 5 уровня?"
$user->getMaxRole() = 9 - максимальный уровень у пользователя составляет 9.
$user->getRole(99) - проверяем есть ли "полные права"?

@solodyagin
Copy link
Contributor Author

Права доступа сделать не общими, а частными для каждого модуля

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant