mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +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->setAnalyzer('keyword', 'searching');
|
||||||
$child->addChild((new Mapping\StringFieldMapping('raw'))->enableRawIndexing());
|
$child->addChild((new Mapping\StringFieldMapping('raw'))->enableRawIndexing());
|
||||||
|
|
||||||
$thesaurusMapping->addChild($thesaurusMapping);
|
$thesaurusMapping->addChild($child);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $thesaurusMapping;
|
return $thesaurusMapping;
|
||||||
|
@@ -1152,8 +1152,9 @@ class ACL implements cache_cacheableInterface
|
|||||||
return $this;
|
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;
|
$inserted = false;
|
||||||
try {
|
try {
|
||||||
$stmt->execute([':base_id' => $base_id, ':usr_id' => $usr_id]);
|
$stmt->execute([':base_id' => $base_id, ':usr_id' => $usr_id]);
|
||||||
@@ -1169,7 +1170,7 @@ class ACL implements cache_cacheableInterface
|
|||||||
return $inserted;
|
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->execute([':base_id' => $base_id, ':usr_id' => $usr_id]);
|
||||||
$stmt->closeCursor();
|
$stmt->closeCursor();
|
||||||
|
@@ -5,6 +5,7 @@ languages:
|
|||||||
main:
|
main:
|
||||||
maintenance: false
|
maintenance: false
|
||||||
key: ''
|
key: ''
|
||||||
|
api_require_ssl: true
|
||||||
database:
|
database:
|
||||||
host: 'sql-host'
|
host: 'sql-host'
|
||||||
port: 3306
|
port: 3306
|
||||||
|
@@ -5,6 +5,7 @@ languages:
|
|||||||
main:
|
main:
|
||||||
maintenance: false
|
maintenance: false
|
||||||
key: ''
|
key: ''
|
||||||
|
api_require_ssl: true
|
||||||
database:
|
database:
|
||||||
host: 'sql-host'
|
host: 'sql-host'
|
||||||
port: 3306
|
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