Reputation: 83
I have an existing jhipster app on which certain companies register and do various operations.
I want to have the functionality of a sub-user which will have the option of either edit/ delete/ view o entity depending on his role,
Is there an existing blueprint for this?
Upvotes: 1
Views: 81
Reputation: 16294
You can't achieve this by using static roles unless you have very few companies and they almost never change.
You should rather look at other Spring Security features like ACL or custom methods for use in expression language annotations. You should probably also have a look at multi-tenancy topic with Spring Security.
Anyway, you have to code it manually, few links to get you started:
You can also find some examples in JHipster:
Upvotes: 1