Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix API vs Web TeamsHasPermissions, add Tests #89

Merged
merged 3 commits into from
Sep 8, 2020
Merged

Fix API vs Web TeamsHasPermissions, add Tests #89

merged 3 commits into from
Sep 8, 2020

Conversation

SeanBourke
Copy link
Contributor

Resolves #62 by checking whether authenticated user is utilising a Sanctum access token prior to comparing token and team permissions.

Enhanced tests to include scenario for web-based user and authenticated user. Updated token test to utilise Sanctum mock to compare explicit API permission matching to team permissions.

@taylorotwell taylorotwell merged commit dda5843 into laravel:master Sep 8, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Team's hasTeamPermission behaviour differs for Web and API users
2 participants