DW: Added datadictionary permissions and checked role using issubset of the...

... configured permission
OK, I'll look at and get this merged today.
On Sep 17, 2014 12:13 PM, "ukanga" <notifications@github.com> wrote:

> In onadata/libs/permissions.py:
>
> > @@ -59,7 +63,8 @@ def has_role(cls, permissions, obj):
> >          :param permissions: A list of permissions.
> >          :param obj: An object to get the permissions of.
> >          """
> > -        return set(permissions) == set(cls.class_to_permissions[type(obj)])
> > +        return all([l in set(permissions)
>
> In that case then it seems we checked with the wrong list.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/onaio/onadata/pull/545/files#r17674288>.
>