crate casbin policy for specific need

65 views Asked by At
  1. Is it possible to have policy which grant read read access to all resource except for specific one. My current policy is:
p, read_some, data1, read
p, read_all, data2, read
p, read_all, data3, read

g, read_all, read_some

  1. Is it possible to grant read access for specific resource if have write access? My current policy is:
p, view_only_user, data1, read
p, write_user, data1, write

g, write_user, view_only_user

0

There are 0 answers