Skip to content

Permissions Refactor - in Refinement #7466

@matmair

Description

@matmair

The permission system currently uses a mixture of stock Django permissions, a self-written role-mapping engine and a ownership model for stock. This is not well documented and the behaviour is not consistent - making it harder to understand/predict.

There are a few issues regarding permissions, some quite old

Related issues

Requirements

Requirements for the overhaul:

  1. Interoperable (additional to) with Djangos default system
  2. Using existing fine-grained control patterns (Tree per Location -> Part -> Stock items)
  3. API-enforced and auto-documented
  4. Generic / pluggable so plugins can use the same systems (maybe with a permission register?)
  5. Extendable with per-model actions (ie. allocate stock, count stock, create revision, ship order but not change it)
  6. Integrate well with (LDAP/SSO synced) groups and be transparent to users

User stories

TBD

Feel free to submit your user stories / requirements / issues here - I will update / remove points as consensus is reached on them.

Sub-issues

Metadata

Metadata

Assignees

Labels

Seeking FundingThis issue can be specifically funded for developmentenhancementThis is an suggested enhancement or new featurerefactorsecurityRelates to a security issue

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions