From b77a6c987f8e7c5e2708f4e02d063d6ffff49c88 Mon Sep 17 00:00:00 2001 From: Ilya Oleshko Date: Wed, 23 Dec 2020 14:12:05 +0300 Subject: [PATCH] Web: Files : Fixed displaying version actions if not full access --- products/ASC.Files/Client/src/store/files/selectors.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/products/ASC.Files/Client/src/store/files/selectors.js b/products/ASC.Files/Client/src/store/files/selectors.js index ae83879d18..9fc559de1a 100644 --- a/products/ASC.Files/Client/src/store/files/selectors.js +++ b/products/ASC.Files/Client/src/store/files/selectors.js @@ -656,6 +656,7 @@ const getFilesContextOptions = ( const isFile = !!item.fileExst; const isFavorite = item.fileStatus === 32; + const isFullAccess = item.access < 2; if (item.id <= 0) return []; @@ -688,8 +689,10 @@ const getFilesContextOptions = ( if (isFile) { options.push("show-version-history"); if (!isVisitor) { - options.push("finalize-version"); - options.push("block-unblock-version"); + if (isFullAccess) { + options.push("finalize-version"); + options.push("block-unblock-version"); + } options.push("separator2"); if (isRecent) {