Skip to content

Implementing Django-like Group Permissions #638

@sreejithr

Description

@sreejithr

The current Group class appears to be a stub. We can go for a Django like group permission API but not necessarily the way Django implements (I'm assuming they designed it with an RDBMS in mind).

This is how Django does it. A User can be part of multiple Groups. If we need to check if some john has add permission on an object article, we call john.has_perm('add', article). Django internally combines all the permissions in the User object and permissions in all the Groups he is part of and checks if the given permission (add) is present.

Anyone have ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions