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

[RFC] Fix ControlMenuHandler authorize method #36

Merged
merged 1 commit into from
Oct 2, 2015
Merged

[RFC] Fix ControlMenuHandler authorize method #36

merged 1 commit into from
Oct 2, 2015

Conversation

quetzyg
Copy link

@quetzyg quetzyg commented Oct 2, 2015

Hi,

I did a fresh Orchestra Platform install and after the initial setup I started activating extensions.
As soon as I activated the Control Extension, I got a InvalidArgumentException in the AuthorizationTrait.php with the following message:

Unable to verify unknown action manage roles. (line 61).

I had a look at other *MenuHandler classes and in all of them, the authorize() method is checking the ACL with the canIf() method, while in this particular case the can() is being used.
Using canIf() fixed my issue, but I don't know if using can() was actually intended.

Let me know what you think.

Cheers,
Quetzy

crynobone added a commit that referenced this pull request Oct 2, 2015
[RFC] Fix ControlMenuHandler authorize method
@crynobone crynobone merged commit af39c5f into orchestral:master Oct 2, 2015
@crynobone
Copy link
Member

Thanks 👍

@quetzyg
Copy link
Author

quetzyg commented Oct 2, 2015

Btw, can you backport this fix to the 3.1 branch?

@quetzyg
Copy link
Author

quetzyg commented Oct 2, 2015

Oh, I see you already tagged 3.1.6, it's just packagist that hasn't updated yet. I'll wait.

@crynobone
Copy link
Member

Yeah, I'm out for dinner. Will be available in an hour.

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

Successfully merging this pull request may close these issues.

None yet

2 participants