Skip to content
Snippets Groups Projects
Unverified Commit c5bc3176 authored by Joas Schilling's avatar Joas Schilling
Browse files

Make sure the default share provider does not execute for other things

parent 74f1b09f
No related branches found
No related tags found
No related merge requests found
......@@ -1187,6 +1187,9 @@ class DefaultShareProvider implements IShareProvider {
$qb->expr()->eq('uid_initiator', $qb->createNamedParameter($uid))
)
);
} else {
\OC::$server->getLogger()->logException(new \InvalidArgumentException('Default share provider tried to delete all shares for type: ' . $shareType));
return;
}
$qb->execute();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment