chg: [user:regitration] Accept/Discard registration accept UUID as

parameter
pull/5809/head
mokaddem 2020-04-22 09:17:47 +02:00
parent 86238031cf
commit 47be5e75fe
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 6 additions and 0 deletions

View File

@ -2374,6 +2374,9 @@ class UsersController extends AppController
$id = $this->params['named']['id'];
}
$this->loadModel('Inbox');
if (Validation::uuid($id)) {
$id = $this->Toolbox->findIdByUuid($this->Inbox, $id);
}
$registrations = $this->Inbox->find('all', array(
'recursive' => -1,
'conditions' => array(
@ -2404,6 +2407,9 @@ class UsersController extends AppController
$id = $this->params['named']['id'];
}
$this->loadModel('Inbox');
if (Validation::uuid($id)) {
$id = $this->Toolbox->findIdByUuid($this->Inbox, $id);
}
$registrations = $this->Inbox->find('all', array(
'recursive' => -1,
'conditions' => array(