Force boolean type for access parameter

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-03-22 16:00:44 +01:00
parent 243cef1c3a
commit 826821a7da
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View 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();