mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 12:14:36 -05:00
fix: API roles save to the URL id and work without auth, index filters, in-use deletes, tags ambiguous column refs #6360
This commit is contained in:
1 parent
4810e25903
commit
dacc9725f5
7 files changed
+268
-11
No files matched your search
@@ -12,6 +12,10 @@ class EncoderTemplatesController extends AppController {
|
||||
public function index() {
|
||||
$this->EncoderTemplate->recursive = -1;
|
||||
$conditions = array();
|
||||
if ($this->request->params['named']) {
|
||||
$this->FilterComponent = $this->Components->load('Filter');
|
||||
$conditions = $this->FilterComponent->buildFilter($this->request->params['named'], array_keys($this->EncoderTemplate->schema()));
|
||||
}
|
||||
if (!empty($this->request->query['Encoder'])) {
|
||||
$conditions['EncoderTemplate.Encoder'] = $this->request->query['Encoder'];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user