File tree 1 file changed +16
-13
lines changed
client/modules/IDE/components
1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -113,19 +113,22 @@ class Sidebar extends React.Component {
113
113
Create file
114
114
</ button >
115
115
</ li >
116
- < li >
117
- < button
118
- aria-label = "upload file"
119
- onClick = { ( ) => {
120
- this . props . openUploadFileModal ( rootFile . id ) ;
121
- setTimeout ( this . props . closeProjectOptions , 0 ) ;
122
- } }
123
- onBlur = { this . onBlurComponent }
124
- onFocus = { this . onFocusComponent }
125
- >
126
- Upload file
127
- </ button >
128
- </ li >
116
+ {
117
+ this . props . user . authenticated &&
118
+ < li >
119
+ < button
120
+ aria-label = "upload file"
121
+ onClick = { ( ) => {
122
+ this . props . openUploadFileModal ( rootFile . id ) ;
123
+ setTimeout ( this . props . closeProjectOptions , 0 ) ;
124
+ } }
125
+ onBlur = { this . onBlurComponent }
126
+ onFocus = { this . onFocusComponent }
127
+ >
128
+ Upload file
129
+ </ button >
130
+ </ li >
131
+ }
129
132
</ ul >
130
133
</ div >
131
134
</ div >
You can’t perform that action at this time.
0 commit comments