mirror of
https://github.com/Mibew/mibew.git
synced 2025-05-10 06:03:07 +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();
|
$errors = array();
|
||||||
$operator = $this->getOperator();
|
$operator = $this->getOperator();
|
||||||
$op_id = $request->attributes->getInt('operator_id');
|
$op_id = $request->attributes->getInt('operator_id');
|
||||||
|
|
||||||
if (is_capable(CAN_ADMINISTRATE, $operator)) {
|
|
||||||
$login = $request->request->get('login');
|
$login = $request->request->get('login');
|
||||||
} else {
|
|
||||||
$login = $operator['vclogin'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$email = $request->request->get('email');
|
$email = $request->request->get('email');
|
||||||
$password = $request->request->get('password');
|
$password = $request->request->get('password');
|
||||||
$password_confirm = $request->request->get('passwordConfirm');
|
$password_confirm = $request->request->get('passwordConfirm');
|
||||||
|
Loading…
Reference in New Issue
Block a user