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

Editing a permission with rule Select2 is initialized with wrong value #1

Open
tsdogs opened this issue Jun 16, 2017 · 0 comments
Open
Assignees
Labels

Comments

@tsdogs
Copy link

tsdogs commented Jun 16, 2017

When you edit a permission which has a rule linked the Select2 for the Rule is initialized with the className of the rule: i.e. app\rbac\AuthorRule (which is what's in the database)
thought the select2 list contains the isAuthor rule name and the management interface is using this to validate.

If you confirm (with no modifications) the Rule field raises and error:
Rule app\rbac\AuthorRule does not exist ...

The rule values should be translated to the Rule name

@tsdogs tsdogs added the bug label Jun 16, 2017
@thyseus thyseus self-assigned this Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants