mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-11 21:42:19 +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")
|
.toolbar-center.project-name(ng-controller="ProjectNameController")
|
||||||
span.name(
|
span.name(
|
||||||
ng-dblclick="startRenaming()",
|
ng-dblclick="!permissions.admin || startRenaming()",
|
||||||
ng-show="!state.renaming"
|
ng-show="!state.renaming"
|
||||||
) {{ project.name }}
|
) {{ project.name }}
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ header.toolbar.toolbar-header(ng-cloak, ng-hide="state.loading")
|
||||||
)
|
)
|
||||||
|
|
||||||
a.rename(
|
a.rename(
|
||||||
|
ng-if="permissions.admin",
|
||||||
href='#',
|
href='#',
|
||||||
tooltip-placement="bottom",
|
tooltip-placement="bottom",
|
||||||
tooltip="#{translate('rename')}",
|
tooltip="#{translate('rename')}",
|
||||||
|
|
Loading…
Reference in a new issue