Skip to content

Commit

Permalink
Remove unneded condition from profile controller
Browse files Browse the repository at this point in the history
  • Loading branch information
JustBlackBird committed Jan 21, 2015
1 parent 9799fb5 commit e273b04
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,7 @@ public function submitFormAction(Request $request)
$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');
Expand Down

0 comments on commit e273b04

Please sign in to comment.