[Composition API + TS] Need Review: ABAC Permissions System Implementation #13296
Unanswered
dyakubovskiy
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I have implemented a reusable permission.ts module (src/permission/permission.ts) that manages access rights based on the ABAC model
Here is the repository itself - https://github.com/dyakubovskiy/permissionDraft
An example of how it works - https://snazzy-llama-8fdc63.netlify.app/
I would like to receive feedback on my code, whether I managed to achieve my goal or there is room for improvement
Personally, I do not think that the best solution in usePermission is multiple checks via if and manual specification of the necessary functions - I feel that this can be done simpler and better, but I have not yet figured out how
In any case, I would be very grateful for feedback
Beta Was this translation helpful? Give feedback.
All reactions