fix: Added put/post to role deletion

pull/2379/merge
iglocska 2017-07-31 15:24:54 +02:00
parent 4d6013c16c
commit 51be308d08
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class RolesController extends AppController {
}
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();
}
$this->Role->id = $id;