]> source.dussan.org Git - nextcloud-server.git/commitdiff
Partially backport #7305 to stable5
authorLukas Reschke <lukas@statuscode.ch>
Sat, 22 Feb 2014 07:15:58 +0000 (08:15 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Sat, 22 Feb 2014 07:15:58 +0000 (08:15 +0100)
apps/files_external/lib/config.php

index 0658eb3461185150bffc2f45f3053f3523082955..7a0d369bca44890a86d0268e5d296bb5beb8ffdc 100755 (executable)
@@ -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, '/');