Skip to content

Commit 6b84372

Browse files
author
Ives van Hoorne
committed
Fix owner check
1 parent b8b3d52 commit 6b84372

File tree

1 file changed

+4
-2
lines changed
  • packages/app/src/app/store/modules/workspace

1 file changed

+4
-2
lines changed

packages/app/src/app/store/modules/workspace/items.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ const LIVE = {
3131
export default function getItems(store) {
3232
if (
3333
store.live.isLive &&
34-
(store.live.isOwner ||
34+
!(
35+
store.live.isOwner ||
3536
(store.user &&
3637
store.currentSandbox &&
3738
store.currentSandbox.author &&
38-
store.currentSandbox.author.id !== store.user.id))
39+
store.currentSandbox.author.id === store.user.id)
40+
)
3941
) {
4042
return [FILES, LIVE];
4143
}

0 commit comments

Comments
 (0)