Skip to content

Commit

Permalink
fix(code-note): allow jr devs with custom display names to edit their…
Browse files Browse the repository at this point in the history
… own notes (#3186)
  • Loading branch information
wescopeland authored Feb 6, 2025
1 parent f156a62 commit 0d6d93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helpers/database/code-note.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function submitCodeNote2(string $username, int $gameID, int $address, string $no
if (
$i !== false
&& $permissions <= Permissions::JuniorDeveloper
&& $currentNotes[$i]['User'] !== $user->User
&& $currentNotes[$i]['User'] !== $user->display_name
&& !empty($currentNotes[$i]['Note'])
) {
return false;
Expand Down

0 comments on commit 0d6d93b

Please sign in to comment.