Hi, I'm creating my first ReBAC and permissions. ...
# general
b
Hi, I'm creating my first ReBAC and permissions. I think i did this correctly? I want to make posts only visible if users are friends with each other. I have this modeled in postgres in don't need permit for this specific relationship, but it's one of the more straightforward permissions / relationships I have. Trying to get the hang of this.
o
Hi @Benjamin Schachter, welcome 🤗. We'll be right with you
t
Hey @Benjamin Schachter, welcome! I don't quite think that what you've implemented will achieve what you're hoping. You essentially have setup self-deriving which I don't think is needed in your example.
b
gotcha
t
You will probably want to create a
post
object, and then have relationships on it
such as
post#owner
and
post#viewer
b
I have a call scheduled with y'all tomorrow. I'm sure you'll be able to pinpoint / grok my permissions I'm trying to model better then.
t
then have a
group#friend
resource and an instance that is created per user, and then setup, for example,
Bob:group#friend
derives
post#viewer
when it's associated
Yeah, I see it's scheduled with me! I'll be more than happy to walk you through these examples live.
✅ 1