621 determine permissions from project permissions

Closes #621 
Yes, I agree. Dennis can you add a test for that?
On Nov 12, 2014 6:22 AM, "Roy Rutto" <notifications@github.com> wrote:

> In onadata/apps/api/tests/viewsets/test_project_viewset.py:
>
> > +        self.project = public_project
> > +        data = {
> > +            'owner': 'http://testserver/api/v1/users/%s'
> > +            % self.project.organization.username,
> > +            'public': True,
> > +            'public_data': True,
> > +            'description': u'transportation_2011_07_25',
> > +            'downloadable': True,
> > +            'allows_sms': False,
> > +            'encrypted': False,
> > +            'sms_id_string': u'transportation_2011_07_25',
> > +            'id_string': u'transportation_2011_07_25',
> > +            'title': u'transportation_2011_07_25',
> > +            'bamboo_dataset': u''
> > +        }
> > +        self._publish_xls_form_to_project(publish_data=data)
>
> does this test pass when public: False is set in public_data? I think
> this test is publishing a form with public: False. Might need to test is
> publishing a form with public: False to a public project makes the form
> public also.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/onaio/onadata/pull/675/files#r20213260>.
>