Remove upload option from Sidebar if not authenticated
This commit is contained in:
parent
41637d2837
commit
72622df155
1 changed files with 16 additions and 13 deletions
|
@ -113,6 +113,8 @@ class Sidebar extends React.Component {
|
|||
Create file
|
||||
</button>
|
||||
</li>
|
||||
{
|
||||
this.props.user.authenticated &&
|
||||
<li>
|
||||
<button
|
||||
aria-label="upload file"
|
||||
|
@ -126,6 +128,7 @@ class Sidebar extends React.Component {
|
|||
Upload file
|
||||
</button>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue