Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-09-27 16:31:28 +0300
committerJoas Schilling <coding@schilljs.com>2019-10-01 10:25:19 +0300
commit7314559199fe3aa51ee585317c49ae055b9da929 (patch)
tree2a466d11b770bbe70d579a1f9146cae71dcf9a40 /lib/Controller
parentc975f6af6ab6956aee852dbaaaa3a28c9790249f (diff)
More IShare::TYPE_* fixes
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/PublicShareAuthController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/PublicShareAuthController.php b/lib/Controller/PublicShareAuthController.php
index 62edaf010..9221c860a 100644
--- a/lib/Controller/PublicShareAuthController.php
+++ b/lib/Controller/PublicShareAuthController.php
@@ -32,9 +32,9 @@ use OCP\IRequest;
use OCP\IUser;
use OCP\IUserManager;
use OCP\IUserSession;
-use OCP\Share;
use OCP\Share\IManager as IShareManager;
use OCP\Share\Exceptions\ShareNotFound;
+use OCP\Share\IShare;
class PublicShareAuthController extends OCSController {
@@ -98,7 +98,7 @@ class PublicShareAuthController extends OCSController {
return new DataResponse([], Http::STATUS_NOT_FOUND);
}
- if ($share->getShareType() === Share::SHARE_TYPE_EMAIL) {
+ if ($share->getShareType() === IShare::TYPE_EMAIL) {
$roomName = $share->getSharedWith();
} else {
$roomName = trim($share->getTarget(), '/');