Skip to content

Commit 36905a7

Browse files
akirkashfame
authored andcommitted
Fix the check whether to provide a profile
1 parent 3dbef3a commit 36905a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Storage/UserClaimsStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function getUserClaims( $user_id, $scope ) {
1818
}
1919

2020
$scopes = explode( ' ', $scope );
21-
if ( ! isset( $scopes['profile'] ) ) {
21+
if ( ! in_array( 'profile', $scopes, true ) ) {
2222
return $claims;
2323
}
2424

0 commit comments

Comments
 (0)