[DE] Fix Bug 41450

This commit is contained in:
Julia Radzhabova 2019-04-26 17:10:34 +03:00
parent 7aa18ded9b
commit 42120fe5d4
3 changed files with 7 additions and 3 deletions

View file

@ -109,6 +109,7 @@ define([
this.setApi(api);
if (data) {
this.currentUserId = data.config.user.id;
this.sdkViewName = data['sdkviewname'] || this.sdkViewName;
}
},
@ -434,7 +435,8 @@ define([
changedata : item,
scope : me.view,
hint : !me.appConfig.canReview,
goto : (item.get_MoveType() == Asc.c_oAscRevisionsMove.MoveTo || item.get_MoveType() == Asc.c_oAscRevisionsMove.MoveFrom)
goto : (item.get_MoveType() == Asc.c_oAscRevisionsMove.MoveTo || item.get_MoveType() == Asc.c_oAscRevisionsMove.MoveFrom),
editable : (item.get_UserId() == me.currentUserId)
});
arr.push(change);

View file

@ -63,7 +63,7 @@ define([
type : 0,
changedata : null,
hint : false,
editable : false,
id : Common.UI.getId(), // internal
scope : null
}

View file

@ -10,7 +10,9 @@
<% } %>
<% if (!hint) { %>
<% if (scope.appConfig.isReviewOnly) { %>
<div class="btn-delete img-commonctrl"></div>
<% if (editable) { %>
<div class="btn-delete img-commonctrl"></div>
<% } %>
<% } else { %>
<div class="btn-accept img-commonctrl"></div>
<div class="btn-reject img-commonctrl"></div>