Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
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
6b22006f
Commit
6b22006f
authored
Sep 09, 2015
by
Lukas Reschke
Browse files
Merge pull request #18931 from owncloud/fix-files_sharing-breakage
Check if files_sharing is actually enabled before using it
parents
7445afdb
29dd7d83
Changes
1
Hide whitespace changes
Inline
Side-by-side
ocs/routes.php
View file @
6b22006f
...
...
@@ -104,31 +104,33 @@ API::register(
);
// Server-to-Server Sharing
$s2s
=
new
\
OCA\Files_Sharing\API\Server2Server
();
API
::
register
(
'post'
,
if
(
\
OC
::
$server
->
getAppManager
()
->
isEnabledForUser
(
'files_sharing'
))
{
$s2s
=
new
\
OCA\Files_Sharing\API\Server2Server
();
API
::
register
(
'post'
,
'/cloud/shares'
,
array
(
$s2s
,
'createShare'
),
'files_sharing'
,
API
::
GUEST_AUTH
);
);
API
::
register
(
'post'
,
API
::
register
(
'post'
,
'/cloud/shares/{id}/accept'
,
array
(
$s2s
,
'acceptShare'
),
'files_sharing'
,
API
::
GUEST_AUTH
);
);
API
::
register
(
'post'
,
API
::
register
(
'post'
,
'/cloud/shares/{id}/decline'
,
array
(
$s2s
,
'declineShare'
),
'files_sharing'
,
API
::
GUEST_AUTH
);
);
API
::
register
(
'post'
,
API
::
register
(
'post'
,
'/cloud/shares/{id}/unshare'
,
array
(
$s2s
,
'unshare'
),
'files_sharing'
,
API
::
GUEST_AUTH
);
);
}
Write
Preview
Supports
Markdown
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