How to display fields based on different permissions?
conku opened this issue · comments
Beverly_conku commented
bm.Listing
xuxin commented
In Listing
, you can hide a field by denying the list permission on this field.
For example:
RoleA is denied to see author
field on posts
in Listing
perm.PolicyFor(RoleA).WhoAre(perm.Denied).ToDo(presets.PermList).On("*:posts:f_author:*")
FYI, permission doc https://docs.qor5.com/presets-guide/permissions.html
Beverly_conku commented
In
Listing
, you can hide a field by denying the list permission on this field. For example: RoleA is denied to seeauthor
field onposts
in Listingperm.PolicyFor(RoleA).WhoAre(perm.Denied).ToDo(presets.PermList).On("*:posts:f_author:*")FYI, permission doc https://docs.qor5.com/presets-guide/permissions.html
Okay, I've learned. Thank you!