Skip to content

fix: Variable identifier type error, fix #36 #37

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

Merged
merged 1 commit into from
Nov 20, 2021

Conversation

basakest
Copy link
Contributor

fix #36

@basakest basakest force-pushed the fix_request_middlewaer branch from cd5d34a to 008afd7 Compare November 19, 2021 14:21
@hsluoyz
Copy link
Member

hsluoyz commented Nov 20, 2021

@techoner

@hsluoyz
Copy link
Member

hsluoyz commented Nov 20, 2021

@amitgoldy1 plz review

@@ -44,7 +44,7 @@ public function handle($request, Closure $next, ...$guards)
protected function authorize(Request $request, array $guards)
{
$user = Auth::user();
$identifier = $user->getAuthIdentifier();
$identifier = strval($user->getAuthIdentifier());
if (method_exists($user, 'getAuthzIdentifier')) {
$identifier = $user->getAuthzIdentifier();
}
Copy link
Member

Choose a reason for hiding this comment

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

@basakest Please move it to this line .

fix: Variable identifier type error, fix php-casbin#36

fix: Variable identifier type error, fix php-casbin#36
@basakest basakest force-pushed the fix_request_middlewaer branch from 008afd7 to 1fe7fde Compare November 20, 2021 03:34
@leeqvip leeqvip merged commit 0e5b1f2 into php-casbin:master Nov 20, 2021
@leeqvip
Copy link
Member

leeqvip commented Nov 20, 2021

🎉 This PR is included in version 3.0.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants