mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
PHRAS-946_delete-record-api
- add : api route to delete record : verb DELETE ; /api/v1/records/{{databox_id}}/{{record_id}}
This commit is contained in:
@@ -950,14 +950,15 @@ class ACL implements cache_cacheableInterface
|
||||
$this->_limited = $data;
|
||||
|
||||
return $this;
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
catch (\Exception $e) {
|
||||
// no-op
|
||||
}
|
||||
|
||||
$sql = 'SELECT u.* FROM basusr u, bas b, sbas s
|
||||
WHERE usr_id= :usr_id
|
||||
AND b.base_id = u.base_id
|
||||
AND b.sbas_id = s.sbas_id
|
||||
AND s.sbas_id = b.sbas_id ';
|
||||
$sql = "SELECT u.* FROM basusr u, bas b, sbas s\n"
|
||||
. "WHERE usr_id= :usr_id\n"
|
||||
. "AND b.base_id = u.base_id\n"
|
||||
. "AND s.sbas_id = b.sbas_id";
|
||||
|
||||
$stmt = $this->app->getApplicationBox()->get_connection()->prepare($sql);
|
||||
$stmt->execute([':usr_id' => $this->user->getId()]);
|
||||
|
Reference in New Issue
Block a user