Fixed these, added some user profile CRU (no D).


On Wed, May 14, 2014 at 8:47 PM, Sam King <notifications@github.com> wrote:

> In handlers.py:
>
> >          is_collaborating = models.collaborator.get_collaborator(
> >              user_key, project.key)
> > -        if user_key and is_collaborating:
> > +        is_project_owner = is_logged_in and project.owner_key == user_key
> > +        should_show_collaborator_emails = is_collaborating or is_project_owner
> > +        #Use the above as booleans to guide permissions.
> > +        if is_project_owner:
> > +            edit_link = self.uri_for(EditProject, project_id=project_id)
> > +        if should_show_collaborator_emails:
> > +            collaborator_emails = models.collaborator.get_collaborator_emails(
> > +                    ndb.Key(models.project.Project,
> > +                    int(project_id))
>
> combine with above line
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/samking/code-the-change-projects/pull/27/files#r12673231>
> .
>