]> source.dussan.org Git - nextcloud-server.git/commitdiff
Force boolean type for access parameter 14812/head
authorJulius Härtl <jus@bitgrid.net>
Fri, 22 Mar 2019 15:00:44 +0000 (16:00 +0100)
committerJulius Härtl <jus@bitgrid.net>
Fri, 22 Mar 2019 15:00:44 +0000 (16:00 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
lib/private/Collaboration/Resources/Manager.php

index bfe95a74514fad3978e55c95572f46cad26d4420..fe5af94ab072bc2084eaebc80d108cb917fa2c4a 100644 (file)
@@ -411,7 +411,7 @@ class Manager implements IManager {
                                'user_id' => $query->createNamedParameter($userId),
                                'resource_id' => $query->createNamedParameter($resource->getId()),
                                'resource_type' => $query->createNamedParameter($resource->getType()),
-                               'access' => $query->createNamedParameter($access),
+                               'access' => $query->createNamedParameter($access, IQueryBuilder::PARAM_BOOL),
                        ]);
                try {
                        $query->execute();