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

[Bug fix] Allow to disable authorize #466

Closed

Conversation

vincentchalamon
Copy link

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #465
License MIT

}

$this->loadAuthorize($config['authorize'], $container, $loader);
Copy link
Contributor

@dinamic dinamic Jan 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this change doing the exact same thing? How does it work?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not the same thing as my version exit the function, so lines 99->104 won't be executed. In original version, they are executed even if authorize feature is disabled, which is a bug IMO.
Still waiting for the team to review & merge this PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version 1.6 is about to be tagged soon. We may be able to squeeze this in.

I think you would have better chance of this getting thru if you solve the conflicts. Unit testing the change would be nice too.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicts solved, but this class is not unit tested

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. I was mislead by the presence of the test file.

@dinamic
Copy link
Contributor

dinamic commented Feb 12, 2018

This seems to duplicate #462, but it's solution relies on returning early and I fancy that. Once this get's merged in, we should be able to close #462 and #465.

@dinamic
Copy link
Contributor

dinamic commented Feb 12, 2018

@dkarlovi, could we have this in the milestone for 1.6?

@dkarlovi dkarlovi added this to the 1.6 milestone Feb 12, 2018
@dkarlovi dkarlovi added the Bug label Feb 12, 2018
@dkarlovi dkarlovi self-assigned this Feb 14, 2018
@florianajir
Copy link

please merge it!

@dkarlovi
Copy link
Contributor

dkarlovi commented Apr 5, 2018

Fixed in #554.

@dkarlovi dkarlovi closed this Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants