mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-11 16:24:42 +00:00
don't allow renaming in client if user is not owner
This commit is contained in:
parent
cdbd7af500
commit
e454d2f059
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,7 @@ header.toolbar.toolbar-header(ng-cloak, ng-hide="state.loading")
|
|||
|
||||
.toolbar-center.project-name(ng-controller="ProjectNameController")
|
||||
span.name(
|
||||
ng-dblclick="startRenaming()",
|
||||
ng-dblclick="!permissions.admin || startRenaming()",
|
||||
ng-show="!state.renaming"
|
||||
) {{ project.name }}
|
||||
|
||||
|
@ -42,6 +42,7 @@ header.toolbar.toolbar-header(ng-cloak, ng-hide="state.loading")
|
|||
)
|
||||
|
||||
a.rename(
|
||||
ng-if="permissions.admin",
|
||||
href='#',
|
||||
tooltip-placement="bottom",
|
||||
tooltip="#{translate('rename')}",
|
||||
|
|
Loading…
Reference in a new issue