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
040c5411
Commit
040c5411
authored
Jun 23, 2016
by
Robin Appelman
Browse files
Remove a fed share from the local table before trying to notify the remote server
parent
1e1903e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/federatedfilesharing/lib/FederatedShareProvider.php
View file @
040c5411
...
@@ -473,6 +473,8 @@ class FederatedShareProvider implements IShareProvider {
...
@@ -473,6 +473,8 @@ class FederatedShareProvider implements IShareProvider {
$isOwner
=
false
;
$isOwner
=
false
;
$this
->
removeShareFromTable
(
$share
);
// if the local user is the owner we can send the unShare request directly...
// if the local user is the owner we can send the unShare request directly...
if
(
$this
->
userManager
->
userExists
(
$share
->
getShareOwner
()))
{
if
(
$this
->
userManager
->
userExists
(
$share
->
getShareOwner
()))
{
$this
->
notifications
->
sendRemoteUnShare
(
$remote
,
$share
->
getId
(),
$share
->
getToken
());
$this
->
notifications
->
sendRemoteUnShare
(
$remote
,
$share
->
getId
(),
$share
->
getToken
());
...
@@ -494,8 +496,6 @@ class FederatedShareProvider implements IShareProvider {
...
@@ -494,8 +496,6 @@ class FederatedShareProvider implements IShareProvider {
}
}
$this
->
notifications
->
sendRevokeShare
(
$remote
,
$remoteId
,
$share
->
getToken
());
$this
->
notifications
->
sendRevokeShare
(
$remote
,
$remoteId
,
$share
->
getToken
());
}
}
$this
->
removeShareFromTable
(
$share
);
}
}
/**
/**
...
...
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