Skip to content

Commit b8b3d52

Browse files
author
Ives van Hoorne
committed
Allow co owners to edit sandboxes too
1 parent 0e85a2f commit b8b3d52

File tree

1 file changed

+8
-1
lines changed
  • packages/app/src/app/store/modules/workspace

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ const LIVE = {
2929
};
3030

3131
export default function getItems(store) {
32-
if (store.live.isLive && !store.live.isOwner) {
32+
if (
33+
store.live.isLive &&
34+
(store.live.isOwner ||
35+
(store.user &&
36+
store.currentSandbox &&
37+
store.currentSandbox.author &&
38+
store.currentSandbox.author.id !== store.user.id))
39+
) {
3340
return [FILES, LIVE];
3441
}
3542

0 commit comments

Comments
 (0)