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

suggest add params for rbac check in access rule #6692

Closed
lynicidn opened this issue Dec 29, 2014 · 1 comment
Closed

suggest add params for rbac check in access rule #6692

lynicidn opened this issue Dec 29, 2014 · 1 comment

Comments

@lynicidn
Copy link
Contributor

public $roleParam = [];

benefit from this:

[
    'actions' => ['delete'],
    'allow' => true,
    'roles' => ['deletePost'],

    'roleParams' => [
        'post' => $this->getPost()
    ],
]
@qiangxue
Copy link
Member

You should use matchCallback for more complex RBAC checking.

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

2 participants