jason135
jason135

Reputation: 189

crate casbin policy for specific need

  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

Upvotes: 1

Views: 71

Answers (0)

Related Questions