From: Lukas Reschke Date: Sun, 23 Feb 2014 10:50:53 +0000 (+0100) Subject: Added extra checks for ext storage class X-Git-Tag: v5.0.15RC1~3^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1679c9138b3a8dcf3b9c02c9db21c15bb5a6a555;p=nextcloud-server.git Added extra checks for ext storage class Backport of #7305 --- diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 0658eb34611..9a1b68002b7 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -256,7 +256,7 @@ class OC_Mount_Config { if ($isPersonal) { // Verify that the mount point applies for the current user // Prevent non-admin users from mounting local storage - if ($applicable != OCP\User::getUser() || $class == '\OC\Files\Storage\Local') { + if ($applicable !== OCP\User::getUser() || strtolower($class) === '\oc\files\storage\local') { return false; } $mountPoint = '/'.$applicable.'/files/'.ltrim($mountPoint, '/');