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
1bcc69da
Commit
1bcc69da
authored
Oct 20, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get edit rights from server config: asc_getRights. Used to set singletone mode
parent
8dcd118e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+4
-0
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+3
-0
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+3
-0
No files found.
apps/documenteditor/main/app/controller/Main.js
View file @
1bcc69da
...
...
@@ -956,6 +956,10 @@ define([
}
this
.
permissions
.
review
=
(
this
.
permissions
.
review
===
undefined
)
?
(
this
.
permissions
.
edit
!==
false
)
:
this
.
permissions
.
review
;
if
(
params
.
asc_getRights
()
!==
Asc
.
c_oRights
.
Edit
)
this
.
permissions
.
edit
=
this
.
permissions
.
review
=
false
;
this
.
appOptions
.
canAnalytics
=
params
.
asc_getIsAnalyticsEnable
();
this
.
appOptions
.
canLicense
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
);
this
.
appOptions
.
isLightVersion
=
params
.
asc_getIsLight
();
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
1bcc69da
...
...
@@ -732,6 +732,9 @@ define([
return
;
}
if
(
params
.
asc_getRights
()
!==
Asc
.
c_oRights
.
Edit
)
this
.
permissions
.
edit
=
false
;
this
.
appOptions
.
isOffline
=
this
.
api
.
asc_isOffline
();
this
.
appOptions
.
canLicense
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
);
this
.
appOptions
.
isLightVersion
=
params
.
asc_getIsLight
();
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
1bcc69da
...
...
@@ -752,6 +752,9 @@ define([
return
;
}
if
(
params
.
asc_getRights
()
!==
Asc
.
c_oRights
.
Edit
)
this
.
permissions
.
edit
=
false
;
this
.
appOptions
.
canAutosave
=
true
;
this
.
appOptions
.
canAnalytics
=
params
.
asc_getIsAnalyticsEnable
();
...
...
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