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

where and how to add rule? #35

Open
pkjoshisbp opened this issue Sep 4, 2019 · 0 comments
Open

where and how to add rule? #35

pkjoshisbp opened this issue Sep 4, 2019 · 0 comments

Comments

@pkjoshisbp
Copy link

pkjoshisbp commented Sep 4, 2019

somewhere in other comments - I saw that
Create your own rule class, for example:

class AboutUsRule extends Rule
{
    public $name = 'aboutUsRule';

    public function execute($user, $item, $params)
    {
        // your code here
    }
}

my question is where do I add these rule. as mention there - class - app\rbac\rules\AboutUsRule // in my example
if I am trying to create a folder rbac in my site root, and then adding rule there, it is showing the directory listing instead of rbac web interface. when I access mysite/rbac.

note:
I am able to add role, permission, assign permission etc. without any issue.

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