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
2d33507f
Commit
2d33507f
authored
Jun 15, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update mode
parent
f5aa4fb2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
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/documenteditor/main/app/controller/Main.js
View file @
2d33507f
...
...
@@ -921,7 +921,7 @@ define([
/** coauthoring end **/
this
.
permissions
.
review
=
(
this
.
permissions
.
review
===
undefined
)
?
(
this
.
permissions
.
edit
!==
false
)
:
this
.
permissions
.
review
;
this
.
appOptions
.
canAnalytics
=
params
.
asc_getIsAnalyticsEnable
();
this
.
appOptions
.
canLicense
=
params
.
asc_getCanLicense
?
params
.
asc_getCanLicense
()
:
false
;
this
.
appOptions
.
canLicense
=
true
||
(
params
.
asc_getCanLicense
?
params
.
asc_getCanLicense
()
:
false
)
;
this
.
appOptions
.
isOffline
=
this
.
api
.
asc_isOffline
();
this
.
appOptions
.
isReviewOnly
=
(
this
.
permissions
.
review
===
true
)
&&
(
this
.
permissions
.
edit
===
false
);
this
.
appOptions
.
canEdit
=
(
this
.
permissions
.
edit
!==
false
||
this
.
permissions
.
review
===
true
)
&&
// can edit or review
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
2d33507f
...
...
@@ -703,7 +703,7 @@ define([
this
.
appOptions
.
canCoAuthoring
=
true
;
/** coauthoring end **/
this
.
appOptions
.
isOffline
=
this
.
api
.
asc_isOffline
();
this
.
appOptions
.
canLicense
=
params
.
asc_getCanLicense
?
params
.
asc_getCanLicense
()
:
false
;
this
.
appOptions
.
canLicense
=
true
||
(
params
.
asc_getCanLicense
?
params
.
asc_getCanLicense
()
:
false
)
;
this
.
appOptions
.
canEdit
=
this
.
permissions
.
edit
!==
false
&&
// can edit
(
this
.
editorConfig
.
canRequestEditRights
||
this
.
editorConfig
.
mode
!==
'
view
'
);
// if mode=="view" -> canRequestEditRights must be defined
this
.
appOptions
.
isEdit
=
this
.
appOptions
.
canLicense
&&
this
.
appOptions
.
canEdit
&&
this
.
editorConfig
.
mode
!==
'
view
'
;
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
2d33507f
...
...
@@ -718,7 +718,7 @@ define([
this
.
appOptions
.
canCoAuthoring
=
true
;
/** coauthoring end **/
this
.
appOptions
.
isOffline
=
this
.
api
.
asc_isOffline
();
this
.
appOptions
.
canLicense
=
params
.
asc_getCanLicense
?
params
.
asc_getCanLicense
()
:
false
;
this
.
appOptions
.
canLicense
=
true
||
(
params
.
asc_getCanLicense
?
params
.
asc_getCanLicense
()
:
false
)
;
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canLicense
&&
!
((
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
);
...
...
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