mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
don't show the template area for non owners
This commit is contained in:
parent
7aab6c4c0b
commit
b4c5f6f253
1 changed files with 3 additions and 2 deletions
|
@ -26,6 +26,7 @@ define [
|
|||
ide: @ide
|
||||
el: $("#publishProject")
|
||||
@publishProjectView.render()
|
||||
|
||||
setupArea()
|
||||
if @ide?
|
||||
@ide.on "afterJoinProject", (project) =>
|
||||
|
@ -49,8 +50,8 @@ define [
|
|||
else
|
||||
@view.options.showAdminControls = false
|
||||
@view.render()
|
||||
|
||||
if @ide.project.get("owner")
|
||||
|
||||
if @ide.project.get("owner") == @ide.user
|
||||
setupPublish()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue