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

Remove user parameter from getGate method #99

Merged
merged 1 commit into from
Feb 28, 2019
Merged

Conversation

erikgaal
Copy link
Contributor

@erikgaal erikgaal commented Feb 28, 2019

Due to a bug in a new feature in Laravel 5.8, policies aren't loaded when using the policy name guesser and Gate::forUser laravel/framework#27708.

Since this call isn't really required, as the authenticated user is the same as the passed one here, we can remove the call to simply fix this issue right now.

@robertvansteen
Copy link
Contributor

LGTM 👍

@codecov
Copy link

codecov bot commented Feb 28, 2019

Codecov Report

Merging #99 into 2.1 will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##                2.1      #99   +/-   ##
=========================================
  Coverage     84.64%   84.64%           
+ Complexity      651      650    -1     
=========================================
  Files            76       76           
  Lines          1902     1902           
=========================================
  Hits           1610     1610           
  Misses          292      292
Impacted Files Coverage Δ Complexity Δ
src/Fields/Field.php 90.44% <100%> (ø) 63 <1> (-1) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef5cbf9...ddea54c. Read the comment docs.

@erikgaal erikgaal merged commit 86c2601 into 2.1 Feb 28, 2019
@erikgaal erikgaal deleted the patch-gate-foruser branch February 28, 2019 12:25
@erikgaal erikgaal changed the title [2.1] Remove user parameter from getGate method Remove user parameter from getGate method Feb 28, 2019
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.

2 participants