Disable toolbar and right panel when lost editing rights (api method denyEditingRights).
This commit is contained in:
parent
4f491a750c
commit
ad21492c29
|
@ -320,6 +320,7 @@ define([
|
|||
this._state.lostEditingRights = !this._state.lostEditingRights;
|
||||
this.api.asc_coAuthoringDisconnect();
|
||||
this.getApplication().getController('LeftMenu').leftMenu.getMenu('file').panels['rights'].onLostEditRights();
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
if (!old_rights)
|
||||
Common.UI.warning({
|
||||
title: this.notcriticalErrorTitle,
|
||||
|
|
|
@ -307,6 +307,7 @@ define([
|
|||
this._state.lostEditingRights = !this._state.lostEditingRights;
|
||||
this.api.asc_coAuthoringDisconnect();
|
||||
this.getApplication().getController('LeftMenu').leftMenu.getMenu('file').panels['rights'].onLostEditRights();
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
if (!old_rights)
|
||||
Common.UI.warning({
|
||||
title: this.notcriticalErrorTitle,
|
||||
|
|
|
@ -335,6 +335,7 @@ define([
|
|||
this._state.lostEditingRights = !this._state.lostEditingRights;
|
||||
this.api.asc_coAuthoringDisconnect();
|
||||
this.getApplication().getController('LeftMenu').leftMenu.getMenu('file').panels['rights'].onLostEditRights();
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
if (!old_rights)
|
||||
Common.UI.warning({
|
||||
title: this.notcriticalErrorTitle,
|
||||
|
|
Loading…
Reference in a new issue