this is doable using an exclusion: you'd write a r...
# spicedb
j
this is doable using an exclusion: you'd write a relationship removing all users like so:
Copy code
definition user {}

definition document {
  relation admin: user
  relation restricted: user:*
  relation viewer: user

  permission view = (viewer - restricted) + admin
}