As far as I understand, you then assign permissions to groups with
add_permission.

>From the manual:

>auth.add_permission(group_id, 'name', 'object', record_id)
>gives permission "name" (user defined) on the object "object" (also user 
>defined) to members of the group group_id.

The problem is, there's no easy way to check if they've been added!

Clayton

On Feb 3, 9:13 am, Kenneth Lundström <kenneth.t.lundst...@gmail.com>
wrote:
> I think that the idea is that if you belong to a specific group you have
> some specific rights.
>
> I have not seen anything about giving permissions to groups.
>
> Kenneth
>
>
>
>
>
>
>
> > Hello,
>
> > I can't seem to find an easy way to check if a *group* has a
> > permission without making my own query on the auth_permission table
> > (and then I lose auth logging and the code is uglier).
> > auth.has_permission only works on users, not groups, as far as I can
> > tell. I need it for a control which is adding and removing permissions
> > from groups.
>
> > add_permission and del_permission use groups. Shouldn't there perhaps
> > be a function that checks whether a group has a given permission? Or
> > am I just missing something.
>
> > Cheers,
>
> > Clayton

Reply via email to