mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-11 15:24:08 +00:00
dont show publish area if it is an open user
This commit is contained in:
parent
8cb21ee2f9
commit
069efaba1b
1 changed files with 2 additions and 4 deletions
|
@ -50,12 +50,10 @@ define [
|
|||
else
|
||||
@view.options.showAdminControls = false
|
||||
@view.render()
|
||||
|
||||
if @ide.project.get("owner") == @ide.user
|
||||
|
||||
if @ide.project.get("owner") == @ide.user and @ide.user.get("id") != "openUser"
|
||||
setupPublish()
|
||||
|
||||
|
||||
|
||||
if @ide.project.get("owner") == @ide.user or @ide.project.get("publicAccesLevel") != "private"
|
||||
if !@socialView?
|
||||
@socialView = new SocialSharingView
|
||||
|
|
Loading…
Add table
Reference in a new issue