https://authzed.com logo
#spicedb
why are you checking `parent_cabinet->is
# spicedb
j

Joey

03/19/2024, 5:24 PM
why are you checking
parent_cabinet->is_member
for
none
?
d

definitelybenny

03/19/2024, 7:42 PM
I just realized I read your message wrong! A user can have erroneous rights to documents that they should no longer be in the same cabinet as. So the first thing we do is check to see if they are a member of the cabinet because if not, then it doesnt matter at all.
j

Joey

03/19/2024, 11:06 PM
sure, but you're redoing that at each level
no need for that
d

definitelybenny

04/03/2024, 3:54 PM
I ended up cleaning up the whole thing according to your rec, and it's amazing! Thanks