Skip to content
Snippets Groups Projects
Commit 8ababef4 authored by Vincent Petry's avatar Vincent Petry
Browse files

Fix validation of allowed personal backend

parent d744e2c1
Branches
No related tags found
No related merge requests found
......@@ -321,7 +321,7 @@ class OC_Mount_Config {
// Verify that the mount point applies for the current user
// Prevent non-admin users from mounting local storage and other disabled backends
$allowed_backends = self::getPersonalBackends();
if ($applicable != OCP\User::getUser() || !in_array($class, $allowed_backends)) {
if ($applicable != OCP\User::getUser() || !isset($allowed_backends[$class])) {
return false;
}
$mountPoint = '/'.$applicable.'/files/'.ltrim($mountPoint, '/');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment