I don't believe i need to check whether he is verified of not that won't
limit any of his actions it is needed only for viewing profile


On Thu, Apr 24, 2014 at 10:01 PM, Salma Amr <notifications@github.com>wrote:

> In
> Entangle/entangle-symfony/public/src/entangle/src/Megasoft/EntangleBundle/Controller/UserController.php:
>
> >
> >  /**
> >   * Gets the required information to view a certain user's profile
> >   * @author almgohar
> >   */
> >  class UserController extends Controller {
> > -
> > +/**
> > + * This Method edits all user information
> > + * @param \Symfony\Component\HttpFoundation\Request $request
> > + * @return \Symfony\Component\HttpFoundation\Response
> > + * @author menna
> > + */
> > +    public function editAction(Request $request) {
> > +        $requestContent = $request->getContent();
> > +        $jsonArray = json_decode($requestContent, true);
> > +        $sessionId = $request->headers->get('X-SESSION-ID');
> > +        $sesionRepo = $this->getDoctrine()->getRepository('MegasoftEntangleBundle:Session');
> > +        $currentSession = $sesionRepo->findOneBy(array('
> sessionId' => $sessionId));
> > +        $user = $currentSession->getUser();
> > +        if ($user) {
>
> you have to check whether user is verified or not @Mennatarek<https://github.com/Mennatarek>
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ndomar/megasoft-14/pull/294/files#r11968912>
> .
>