mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Remove unneded condition from profile controller
This commit is contained in:
parent
9799fb5e3f
commit
e273b04dab
@ -121,13 +121,7 @@ class ProfileController extends AbstractController
|
||||
$errors = array();
|
||||
$operator = $this->getOperator();
|
||||
$op_id = $request->attributes->getInt('operator_id');
|
||||
|
||||
if (is_capable(CAN_ADMINISTRATE, $operator)) {
|
||||
$login = $request->request->get('login');
|
||||
} else {
|
||||
$login = $operator['vclogin'];
|
||||
}
|
||||
|
||||
$login = $request->request->get('login');
|
||||
$email = $request->request->get('email');
|
||||
$password = $request->request->get('password');
|
||||
$password_confirm = $request->request->get('passwordConfirm');
|
||||
|
Loading…
Reference in New Issue
Block a user