Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
10a16edb
Commit
10a16edb
authored
Jun 28, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
permissions.comments -> permissions.comment.
parent
eb65c1d0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
apps/api/documents/api.js
apps/api/documents/api.js
+1
-0
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+1
-1
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+1
-1
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+1
-1
No files found.
apps/api/documents/api.js
View file @
10a16edb
...
...
@@ -43,6 +43,7 @@
print: <can print>, // default = true
rename: <can rename>, // default = false
changeHistory: <can change history>, // default = false
comment: <can comment in view mode> // default = edit
}
},
editorConfig: {
...
...
apps/documenteditor/main/app/controller/Main.js
View file @
10a16edb
...
...
@@ -1002,7 +1002,7 @@ define([
this
.
appOptions
.
canHistoryRestore
=
this
.
editorConfig
.
canHistoryRestore
&&
!!
this
.
permissions
.
changeHistory
;
this
.
appOptions
.
canUseMailMerge
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
canEdit
&&
/*!this.appOptions.isDesktopApp*/
!
this
.
appOptions
.
isOffline
;
this
.
appOptions
.
canSendEmailAddresses
=
this
.
appOptions
.
canLicense
&&
this
.
editorConfig
.
canSendEmailAddresses
&&
this
.
appOptions
.
canEdit
&&
this
.
appOptions
.
canCoAuthoring
;
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canLicense
&&
(
this
.
permissions
.
comment
s
===
undefined
?
this
.
appOptions
.
isEdit
:
this
.
permissions
.
comments
);
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canLicense
&&
(
this
.
permissions
.
comment
===
undefined
?
this
.
appOptions
.
isEdit
:
this
.
permissions
.
comment
);
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canComments
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
comments
===
false
);
this
.
appOptions
.
canChat
=
this
.
appOptions
.
canLicense
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
this
.
appOptions
.
canEditStyles
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
canEdit
;
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
10a16edb
...
...
@@ -774,7 +774,7 @@ define([
this
.
appOptions
.
isEdit
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
canEdit
&&
this
.
editorConfig
.
mode
!==
'
view
'
;
this
.
appOptions
.
canDownload
=
!
this
.
appOptions
.
nativeApp
&&
this
.
permissions
.
download
!==
false
;
this
.
appOptions
.
canAnalytics
=
params
.
asc_getIsAnalyticsEnable
();
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canLicense
&&
(
this
.
permissions
.
comment
s
===
undefined
?
this
.
appOptions
.
isEdit
:
this
.
permissions
.
comments
);
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canLicense
&&
(
this
.
permissions
.
comment
===
undefined
?
this
.
appOptions
.
isEdit
:
this
.
permissions
.
comment
);
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canComments
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
comments
===
false
);
this
.
appOptions
.
canChat
=
this
.
appOptions
.
canLicense
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
this
.
appOptions
.
canPrint
=
(
this
.
permissions
.
print
!==
false
);
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
10a16edb
...
...
@@ -791,7 +791,7 @@ define([
/** coauthoring begin **/
this
.
appOptions
.
canCoAuthoring
=
!
this
.
appOptions
.
isLightVersion
;
/** coauthoring end **/
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canLicense
&&
(
this
.
permissions
.
comment
s
===
undefined
?
(
this
.
permissions
.
edit
!==
false
&&
this
.
editorConfig
.
mode
!==
'
view
'
)
:
this
.
permissions
.
comments
);
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canLicense
&&
(
this
.
permissions
.
comment
===
undefined
?
(
this
.
permissions
.
edit
!==
false
&&
this
.
editorConfig
.
mode
!==
'
view
'
)
:
this
.
permissions
.
comment
);
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canComments
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
comments
===
false
);
this
.
appOptions
.
canChat
=
this
.
appOptions
.
canLicense
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
this
.
appOptions
.
canRename
=
!!
this
.
permissions
.
rename
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment