Skip to content

Rulset simplification #9506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

SchrodingersGat
Copy link
Member

As part of an effort towards improving / updating / reworking the "permissions" system (with the eventual goal of simplification and allowing plugins to hook into permission checks) - this PR consolidates some of the existing role types:

  • Remove part_category role - now in part
  • Remove stock_location role - now in stock

References

- Remove 'stock_location'
- Remove 'part_category'
@SchrodingersGat SchrodingersGat added the breaking Indicates a major update or change which breaks compatibility label Apr 15, 2025
Copy link

netlify bot commented Apr 15, 2025

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit e436e2d
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/67fdc7fe3c330f0008be6828
😎 Deploy Preview https://deploy-preview-9506--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 97 (no change from production)
Accessibility: 89 (no change from production)
Best Practices: 100 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

SchrodingersGat added a commit to inventree/inventree-app that referenced this pull request Apr 15, 2025
SchrodingersGat added a commit to inventree/inventree-app that referenced this pull request Apr 15, 2025
@matmair
Copy link
Contributor

matmair commented Apr 15, 2025

This makes it such that anyone in an org that should work on parts also can mess up the general structure of the database as they now can also create/remove categories and locations.

Can we hold of on merging this till the mentioned solution to use plugins for permissions is done? This would cause serious headaches in my instances, especially because I would have to patch permissions somehow as the default behavior changes.

@SchrodingersGat
Copy link
Member Author

@matmair fair enough, I'll leave this one pending until we have a good solution for exposing to plugins.

@matmair
Copy link
Contributor

matmair commented Apr 15, 2025

Maybe we can discuss the overall design shift before implementing it - for example in #7466

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Indicates a major update or change which breaks compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants