Hello guys! Quick question: Say I have an user ent...
# spicedb
t
Hello guys! Quick question: Say I have an user entity with a view_profile permission:
Copy code
definition user { 
  permission view_profile = ....
}
In order to see the user profile you either have to be a friend of this user or be the user itself. How would you model the "be the user itself? part? Do I have to create a relation for it? For example:
Copy code
definition user { 
  relation myself: user
  permission view_profile = myself
}
Any tips?