Web: Files : Fixed displaying version actions if not full access

This commit is contained in:
Ilya Oleshko 2020-12-23 14:12:05 +03:00
parent a21531dd15
commit b77a6c987f

View File

@ -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) {