diff options
author | Joas Schilling <coding@schilljs.com> | 2019-09-27 16:31:28 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-10-01 10:25:19 +0300 |
commit | 7314559199fe3aa51ee585317c49ae055b9da929 (patch) | |
tree | 2a466d11b770bbe70d579a1f9146cae71dcf9a40 /lib/Controller | |
parent | c975f6af6ab6956aee852dbaaaa3a28c9790249f (diff) |
More IShare::TYPE_* fixes
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/PublicShareAuthController.php | 4 |
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(), '/'); |