Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spatie/spatie.be
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 14, 2023
2 parents 2a3bd3c + 8cde078 commit 6fee9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function isSpatieMember(): bool
return false;
}

return Member::where('github', $this->github_username)->exists();
return Member::where('github', $this->github_username)->exists() || Member::where('email', $this->email)->exists();
}

public function owns(Purchasable $purchasable): bool
Expand Down

0 comments on commit 6fee9d4

Please sign in to comment.