Browse Source
Merge pull request #14812 from nextcloud/bugfix/noid/collections-access-type
Force boolean type for access parameter
pull/14825/head
Roeland Jago Douma
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
lib/private/Collaboration/Resources/Manager.php
|
|
|
@ -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(); |
|
|
|
|