We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Создал роль - moderator. Присваиваю ей права... В главном модуле правила не работают.
В модуле есть права доступа https://github.com/yupe/yupe/blob/master/protected/modules/yupe/YupeModule.php#L851
public function getAuthItems() { return [ [ 'name' => 'ManageYupeParams', 'description' => Yii::t('YupeModule.yupe', 'Modules update'), 'type' => AuthItem::TYPE_TASK, 'items' => [ [ 'type' => AuthItem::TYPE_OPERATION, 'name' => 'Yupe.YupeBackend.index', 'description' => Yii::t('YupeModule.yupe', 'Yupe panel') ], [ 'type' => AuthItem::TYPE_OPERATION, 'name' => 'Update.UpdateBackend.update', 'description' => Yii::t('YupeModule.yupe', 'Modules update') ], ] ] ]; }
Однако в контроллере они не описаны. Поэтому после применения этих правил доступ все равно закрыт.
https://github.com/yupe/yupe/blob/master/protected/modules/yupe/controllers/BackendController.php#L29
public function accessRules() { return [ ['allow', 'roles' => ['admin']], ['allow', 'actions' => ['index']], ['allow', 'actions' => ['error']], ['allow', 'actions' => ['AjaxFileUpload']], ['allow', 'actions' => ['AjaxImageUpload']], ['allow', 'actions' => ['transliterate']], ['deny',], ]; }
И хотелось бы еще на каждую операцию иметь отдельное правило - Например - разрешить настройки сайта и очищать кеш и запретить настройки тем...
The text was updated successfully, but these errors were encountered:
Merge pull request #2808 from kuzmina-mariya/fix/yupe-module-rbac
e1d2b2e
#2303: accessRules для главного модуля Yupe
No branches or pull requests
Создал роль - moderator.
Присваиваю ей права... В главном модуле правила не работают.
В модуле есть права доступа
https://github.com/yupe/yupe/blob/master/protected/modules/yupe/YupeModule.php#L851
Однако в контроллере они не описаны.
Поэтому после применения этих правил доступ все равно закрыт.
https://github.com/yupe/yupe/blob/master/protected/modules/yupe/controllers/BackendController.php#L29
И хотелось бы еще на каждую операцию иметь отдельное правило -
Например - разрешить настройки сайта и очищать кеш и запретить настройки тем...
The text was updated successfully, but these errors were encountered: