diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index 40fef674a006f9c0a982e3c1e155a607df8d0ac8..d32e082ade9965f4c1331381424e1e9a3a5413cc 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -254,7 +254,7 @@ class Filesystem {
 			}
 			if (isset($mountConfig['user'])) {
 				foreach ($mountConfig['user'] as $mountUser => $mounts) {
-					if ($user === 'all' or strtolower($mountUser) === strtolower($user)) {
+					if ($mountUser === 'all' or strtolower($mountUser) === strtolower($user)) {
 						foreach ($mounts as $mountPoint => $options) {
 							$mountPoint = self::setUserVars($user, $mountPoint);
 							foreach ($options as &$option) {