Open slavicklg opened 8 years ago
https://github.com/johnitvn/yii2-rbac-plus/blob/master/src/models/Role.php#L64
public function getPermistions($name) { $authManager = Yii::$app->authManager; return $authManager->getPermissionsByRole($name); }
https://github.com/johnitvn/yii2-rbac-plus/blob/master/src/views/role/view.php#L5
$permissions = Role::getPermistions($model->name);
change to public static function getPermistions($name) {
public static function getPermistions($name) {
https://github.com/johnitvn/yii2-rbac-plus/blob/master/src/models/Role.php#L64
https://github.com/johnitvn/yii2-rbac-plus/blob/master/src/views/role/view.php#L5