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
924b3226
Commit
924b3226
authored
7 years ago
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set permissions to docInfo (use put_Permissions).
parent
e2296f45
No related merge requests found
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
0 deletions
+9
-0
apps/documenteditor/embed/js/ApplicationController.js
apps/documenteditor/embed/js/ApplicationController.js
+1
-0
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+1
-0
apps/documenteditor/mobile/app/controller/Main.js
apps/documenteditor/mobile/app/controller/Main.js
+1
-0
apps/presentationeditor/embed/js/ApplicationController.js
apps/presentationeditor/embed/js/ApplicationController.js
+1
-0
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+1
-0
apps/presentationeditor/mobile/app/controller/Main.js
apps/presentationeditor/mobile/app/controller/Main.js
+1
-0
apps/spreadsheeteditor/embed/js/ApplicationController.js
apps/spreadsheeteditor/embed/js/ApplicationController.js
+1
-0
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+1
-0
apps/spreadsheeteditor/mobile/app/controller/Main.js
apps/spreadsheeteditor/mobile/app/controller/Main.js
+1
-0
No files found.
apps/documenteditor/embed/js/ApplicationController.js
View file @
924b3226
...
...
@@ -97,6 +97,7 @@ var ApplicationController = new(function(){
docInfo
.
put_Format
(
docConfig
.
fileType
);
docInfo
.
put_VKey
(
docConfig
.
vkey
);
docInfo
.
put_Token
(
docConfig
.
token
);
docInfo
.
put_Permissions
(
permissions
);
if
(
api
)
{
api
.
asc_registerCallback
(
'
asc_onGetEditorPermissions
'
,
onEditorPermissions
);
...
...
This diff is collapsed.
Click to expand it.
apps/documenteditor/main/app/controller/Main.js
View file @
924b3226
...
...
@@ -321,6 +321,7 @@ define([
docInfo
.
put_UserInfo
(
_user
);
docInfo
.
put_CallbackUrl
(
this
.
editorConfig
.
callbackUrl
);
docInfo
.
put_Token
(
data
.
doc
.
token
);
docInfo
.
put_Permissions
(
this
.
permissions
);
// docInfo.put_Review(this.permissions.review);
// docInfo.put_OfflineApp(this.editorConfig.nativeApp === true); // used in sdk for testing
}
...
...
This diff is collapsed.
Click to expand it.
apps/documenteditor/mobile/app/controller/Main.js
View file @
924b3226
...
...
@@ -228,6 +228,7 @@ define([
docInfo
.
put_UserInfo
(
_user
);
docInfo
.
put_CallbackUrl
(
this
.
editorConfig
.
callbackUrl
);
docInfo
.
put_Token
(
data
.
doc
.
token
);
docInfo
.
put_Permissions
(
this
.
permissions
);
}
this
.
api
.
asc_registerCallback
(
'
asc_onGetEditorPermissions
'
,
_
.
bind
(
this
.
onEditorPermissions
,
this
));
...
...
This diff is collapsed.
Click to expand it.
apps/presentationeditor/embed/js/ApplicationController.js
View file @
924b3226
...
...
@@ -98,6 +98,7 @@ var ApplicationController = new(function(){
docInfo
.
put_Format
(
docConfig
.
fileType
);
docInfo
.
put_VKey
(
docConfig
.
vkey
);
docInfo
.
put_Token
(
docConfig
.
token
);
docInfo
.
put_Permissions
(
permissions
);
if
(
api
)
{
api
.
asc_registerCallback
(
'
asc_onGetEditorPermissions
'
,
onEditorPermissions
);
...
...
This diff is collapsed.
Click to expand it.
apps/presentationeditor/main/app/controller/Main.js
View file @
924b3226
...
...
@@ -313,6 +313,7 @@ define([
docInfo
.
put_UserInfo
(
_user
);
docInfo
.
put_CallbackUrl
(
this
.
editorConfig
.
callbackUrl
);
docInfo
.
put_Token
(
data
.
doc
.
token
);
docInfo
.
put_Permissions
(
this
.
permissions
);
//docInfo.put_OfflineApp(this.editorConfig.nativeApp === true);
}
...
...
This diff is collapsed.
Click to expand it.
apps/presentationeditor/mobile/app/controller/Main.js
View file @
924b3226
...
...
@@ -231,6 +231,7 @@ define([
docInfo
.
put_UserInfo
(
_user
);
docInfo
.
put_CallbackUrl
(
this
.
editorConfig
.
callbackUrl
);
docInfo
.
put_Token
(
data
.
doc
.
token
);
docInfo
.
put_Permissions
(
this
.
permissions
);
}
this
.
api
.
asc_registerCallback
(
'
asc_onGetEditorPermissions
'
,
_
.
bind
(
this
.
onEditorPermissions
,
this
));
...
...
This diff is collapsed.
Click to expand it.
apps/spreadsheeteditor/embed/js/ApplicationController.js
View file @
924b3226
...
...
@@ -96,6 +96,7 @@ var ApplicationController = new(function(){
docInfo
.
put_Format
(
docConfig
.
fileType
);
docInfo
.
put_VKey
(
docConfig
.
vkey
);
docInfo
.
put_Token
(
docConfig
.
token
);
docInfo
.
put_Permissions
(
permissions
);
if
(
api
)
{
api
.
asc_registerCallback
(
'
asc_onGetEditorPermissions
'
,
onEditorPermissions
);
...
...
This diff is collapsed.
Click to expand it.
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
924b3226
...
...
@@ -343,6 +343,7 @@ define([
docInfo
.
put_UserInfo
(
_user
);
docInfo
.
put_CallbackUrl
(
this
.
editorConfig
.
callbackUrl
);
docInfo
.
put_Token
(
data
.
doc
.
token
);
docInfo
.
put_Permissions
(
this
.
permissions
);
this
.
headerView
.
setDocumentCaption
(
data
.
doc
.
title
);
}
...
...
This diff is collapsed.
Click to expand it.
apps/spreadsheeteditor/mobile/app/controller/Main.js
View file @
924b3226
...
...
@@ -234,6 +234,7 @@ define([
docInfo
.
put_UserInfo
(
_user
);
docInfo
.
put_CallbackUrl
(
this
.
editorConfig
.
callbackUrl
);
docInfo
.
put_Token
(
data
.
doc
.
token
);
docInfo
.
put_Permissions
(
this
.
permissions
);
}
this
.
api
.
asc_registerCallback
(
'
asc_onGetEditorPermissions
'
,
_
.
bind
(
this
.
onEditorPermissions
,
this
));
...
...
This diff is collapsed.
Click to expand it.
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