mirror of https://github.com/MISP/MISP
fix: [users] adding/modifying users fails silently for org admins if domain restriction checks fail
parent
10412eecc9
commit
773713e949
|
@ -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']));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue