fix: [users] adding/modifying users fails silently for org admins if domain restriction checks fail

pull/7814/head
iglocska 2021-10-06 15:54:52 +02:00
parent 10412eecc9
commit 773713e949
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ class UsersController extends AppController
$fail = false;
}
}
if ($abortPost) {
if ($fail) {
$this->Flash->error(__('Invalid e-mail domain. Your user is restricted to creating users for the following domain(s): ') . implode(', ', $organisation['Organisation']['restricted_to_domain']));
}
}