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

Non-static method called statically #18

Open
slavicklg opened this issue Jan 27, 2016 · 1 comment
Open

Non-static method called statically #18

slavicklg opened this issue Jan 27, 2016 · 1 comment

Comments

@slavicklg
Copy link

image

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);
@slavicklg
Copy link
Author

change to
public static function getPermistions($name) {

max-dreamsoft added a commit to max-dreamsoft/yii2-rbac-plus that referenced this issue Feb 5, 2016
johnitvn added a commit that referenced this issue Feb 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant