Skip to content

Commit fb07082

Browse files
committed
Fix bug where hasScope returns false for most scopes
Quick fix for an issue where the developer had accidentally hard coded a scope to check for in the `hasScope` method.
1 parent c9ff498 commit fb07082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ShotbowPlayer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getEmail()
100100
*/
101101
protected function hasScope($scope)
102102
{
103-
return array_key_exists('email', $this->attributes['scopes']);
103+
return array_key_exists($scope, $this->attributes['scopes']);
104104
}
105105

106106
/**

0 commit comments

Comments
 (0)