mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
PHRAS-508_acl-cache
- fix ref on pdo stmt
This commit is contained in:
@@ -118,7 +118,7 @@ class RecordIndex implements MappingProvider
|
||||
$child->setAnalyzer('keyword', 'searching');
|
||||
$child->addChild((new Mapping\StringFieldMapping('raw'))->enableRawIndexing());
|
||||
|
||||
$thesaurusMapping->addChild($thesaurusMapping);
|
||||
$thesaurusMapping->addChild($child);
|
||||
}
|
||||
|
||||
return $thesaurusMapping;
|
||||
|
@@ -1152,8 +1152,9 @@ class ACL implements cache_cacheableInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
private function try_give_access_to_base_insert(&$stmt, $base_id, $usr_id)
|
||||
private function try_give_access_to_base_insert(PDOStatement $stmt, $base_id, $usr_id)
|
||||
{
|
||||
$stmt = null;
|
||||
$inserted = false;
|
||||
try {
|
||||
$stmt->execute([':base_id' => $base_id, ':usr_id' => $usr_id]);
|
||||
@@ -1169,7 +1170,7 @@ class ACL implements cache_cacheableInterface
|
||||
return $inserted;
|
||||
}
|
||||
|
||||
private function try_give_access_to_base_update(&$stmt, $base_id, $usr_id)
|
||||
private function try_give_access_to_base_update(PDOStatement $stmt, $base_id, $usr_id)
|
||||
{
|
||||
$stmt->execute([':base_id' => $base_id, ':usr_id' => $usr_id]);
|
||||
$stmt->closeCursor();
|
||||
|
@@ -5,6 +5,7 @@ languages:
|
||||
main:
|
||||
maintenance: false
|
||||
key: ''
|
||||
api_require_ssl: true
|
||||
database:
|
||||
host: 'sql-host'
|
||||
port: 3306
|
||||
|
@@ -5,6 +5,7 @@ languages:
|
||||
main:
|
||||
maintenance: false
|
||||
key: ''
|
||||
api_require_ssl: true
|
||||
database:
|
||||
host: 'sql-host'
|
||||
port: 3306
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Reference in New Issue
Block a user