mirror of https://github.com/MISP/MISP
fix: Added put/post to role deletion
parent
4d6013c16c
commit
51be308d08
|
@ -128,7 +128,7 @@ class RolesController extends AppController {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function admin_delete($id = null) {
|
public function admin_delete($id = null) {
|
||||||
if (!$this->request->is('post')) {
|
if (!$this->request->is('post') && !$this->request->is('put') && !$this->request->is('delete')) {
|
||||||
throw new MethodNotAllowedException();
|
throw new MethodNotAllowedException();
|
||||||
}
|
}
|
||||||
$this->Role->id = $id;
|
$this->Role->id = $id;
|
||||||
|
|
Loading…
Reference in New Issue