Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
e9e7ee67
Commit
e9e7ee67
authored
Jan 07, 2015
by
Bjoern Schiessle
Browse files
shareType and permissions are integers
parent
b6f63e9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/ajax/share.php
View file @
e9e7ee67
...
...
@@ -73,9 +73,9 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$return
=
OCP\Share
::
setPermissions
(
$_POST
[
'itemType'
],
$_POST
[
'itemSource'
],
$_POST
[
'shareType'
],
(
int
)
$_POST
[
'shareType'
],
$_POST
[
'shareWith'
],
$_POST
[
'permissions'
]
(
int
)
$_POST
[
'permissions'
]
);
(
$return
)
?
OC_JSON
::
success
()
:
OC_JSON
::
error
();
}
...
...
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