Remove unneded condition from profile controller

This commit is contained in:
Dmitriy Simushev 2015-01-21 11:48:40 +00:00
parent 9799fb5e3f
commit e273b04dab

View File

@ -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');