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
Support customizing the tag name #11
Conversation
This change is related to https://github.com/Fale/sheriff This (Fale@921a76a) is more precisely what I look forward, but the only way I can think of to obtain it is to change the API, which might be something that would be better avoiding. I'm looking for that functionality more than that syntax, so if we can figure out a way to implement that in a way that is satisfying for you to merge, I'll be very happy to reimplement it in such way! |
thanks for your PR. I'm not quite sure yet why you need that. Initial reaction was: why don't you just define more groups? |
Groups are managed in or (have at least in the group), while those are in and. so basically is: (X or Y or Z) AND (A or B or C) AND ... Real case scenario (the one I'm using it for): type Service struct {
ID uuid.UUID `json:"id" gorm:"primary_key" type:"Read,List" caps:"ServiceRead,SuperRead"`
Code string `json:"code" type:"Read,List" caps:"SuperCreate,ServiceRead,SuperRead"`
Name string `json:"name" type:"Read,List" caps:"SuperCreate,SuperRead"`
Type string `json:"type" type:"Read,List" caps:"SuperCreate,ServiceRead,SuperRead"`
SubServices []SubService `json:"sub_services" type:"Read" caps:"ServiceRead,SuperRead"`
} we use |
Hi @Fale I see the use case now but I'm unsure yet if there isn't a better way to integrate it with a smaller API change possibly. Sorry! |
Hi, I'm not sure either if this is the best approach. Cheers, |
Great! thanks. Let me know your results then ;) |
this PR now conflicts and I'm still waiting for an update in your case. |
closing due to inactivity. |
No description provided.