Skip to content

Commit

Permalink
Fix invitable check
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment committed Nov 12, 2023
1 parent c02b26e commit 2ed6cd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ private void checkInvitable()
{
if (ownerId == api.getSelfUser().getIdLong()) return;

if (!isPublic() || !isInvitable())
if (!isPublic() && !isInvitable())
checkPermission(Permission.MANAGE_THREADS);
}
}

0 comments on commit 2ed6cd8

Please sign in to comment.