]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added extra checks for ext storage class
authorLukas Reschke <lukas@statuscode.ch>
Sun, 23 Feb 2014 10:50:53 +0000 (11:50 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Sun, 23 Feb 2014 10:50:53 +0000 (11:50 +0100)
Backport of #7305

apps/files_external/lib/config.php

index 0658eb3461185150bffc2f45f3053f3523082955..9a1b68002b78a0cc0d9e738c044230eb46f7a9a1 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, '/');