Skip to content

Commit

Permalink
Allow anyone to edit library items regardless of wether they are play…
Browse files Browse the repository at this point in the history
…ing or not
  • Loading branch information
Zequez committed Dec 10, 2024
1 parent 0497ef4 commit ef5c2fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/store/gameSpaceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export function createGameSpaceSynStore(synDoc: SynDoc) {
isPlaying: $canLeaveGame,
isArchived: $state.isArchived,
};
const canEdit = (params.isCreator || params.isPlaying) && !params.isArchived;
const canEdit =
((params.isCreator || params.isPlaying) && !params.isArchived) || $state.isLibraryItem;
return {
...params,
canJoin: $canJoinGame,
Expand Down

0 comments on commit ef5c2fa

Please sign in to comment.