Remove phraseanet services, update configuration

This commit is contained in:
Romain Neutron
2013-06-11 11:57:43 +02:00
parent 8ecc97e94e
commit 32c2d6154a
99 changed files with 1545 additions and 5049 deletions

View File

@@ -1456,7 +1456,7 @@ class ACL implements cache_cacheableInterface
foreach ($this->get_granted_base(array(), array($databox->get_sbas_id())) as $collection) {
$stmt->execute(array(
':site_id' => $this->app['phraseanet.registry']->get('GV_sit'),
':site_id' => $this->app['phraseanet.configuration']['main']['key'],
':usr_id' => $this->user->get_id(),
':coll_id' => $collection->get_coll_id(),
':mask_and' => $this->get_mask_and($collection->get_base_id()),
@@ -1484,7 +1484,7 @@ class ACL implements cache_cacheableInterface
$sql = 'DELETE FROM collusr WHERE usr_id = :usr_id AND site = :site';
$params = array(
':usr_id' => $this->user->get_id()
, ':site' => $this->app['phraseanet.registry']->get('GV_sit')
, ':site' => $this->app['phraseanet.configuration']['main']['key']
);
$stmt = $databox->get_connection()->prepare($sql);
$stmt->execute($params);