-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Labels
Seeking FundingThis issue can be specifically funded for developmentThis issue can be specifically funded for developmentenhancementThis is an suggested enhancement or new featureThis is an suggested enhancement or new featurerefactorsecurityRelates to a security issueRelates to a security issue
Milestone
Description
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
- Stock Item Ownership on items with no owner #7446
- Django permission group naming can be misleading #7003
- [PUI] Check user permission when viewing pages #5755
- [FR] Permissions system for pricing #4022
Requirements
Requirements for the overhaul:
- Interoperable (additional to) with Djangos default system
- Using existing fine-grained control patterns (Tree per Location -> Part -> Stock items)
- API-enforced and auto-documented
- Generic / pluggable so plugins can use the same systems (maybe with a permission register?)
- Extendable with per-model actions (ie. allocate stock, count stock, create revision, ship order but not change it)
- 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.
SchrodingersGat, wolflu05 and wieselukas
Sub-issues
Metadata
Metadata
Assignees
Labels
Seeking FundingThis issue can be specifically funded for developmentThis issue can be specifically funded for developmentenhancementThis is an suggested enhancement or new featureThis is an suggested enhancement or new featurerefactorsecurityRelates to a security issueRelates to a security issue