Skip to content

Commit 8234f76

Browse files
committed
Only show upload when you're signed in and sandbox is not private
1 parent 22ea6ff commit 8234f76

File tree

1 file changed

+5
-1
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry

1 file changed

+5
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,11 @@ class DirectoryEntry extends React.Component {
230230
rename={!root && this.renameDirectory}
231231
onCreateModuleClick={this.onCreateModuleClick}
232232
onCreateDirectoryClick={this.onCreateDirectoryClick}
233-
onUploadFileClick={this.onUploadFileClick}
233+
onUploadFileClick={
234+
this.props.store.isLoggedIn &&
235+
currentSandbox.privacy === 0 &&
236+
this.onUploadFileClick
237+
}
234238
deleteEntry={!root && this.deleteDirectory}
235239
hasChildren={this.getChildren().length > 0}
236240
closeTree={this.closeTree}

0 commit comments

Comments
 (0)