Skip to content

authorization scheme for permissions to edit collections and icons #2

Open
@ischneider

Description

@ischneider

Proposed:

add the following fields (where user_model = settings.AUTH_USER_MODEL)

IconData
editor = ForeignKey(user_model)

Icon
creator = ForeignKey(user_model)

Collection
members = ManyToMany(user_model)

Default authorization rules:

  • user is superuser
  • user is creator of Icon or IconData.icon
  • user is in Icon or IconData.icon Collection.members

The authorization module should be swappable to allow downstream projects to do as they see fit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions