https://authzed.com logo
Generic Permission
j

Joey

03/23/2023, 7:21 PM
definition resource_type {
  relation searcher: user
  permission can_search = searcher
}
and then have
resource_type:whatever
per type?
a

akoenig

03/23/2023, 7:38 PM
Sounds good. Thanks, @Joey - How would the permission check look like? From my understanding, it is required to pass a resource ID while doing the check. In the use case of search this doesn't exist though.
j

Joey

03/23/2023, 7:38 PM
the resource ID would be the resource type
resource_type
would be a "meta" type
a

akoenig

03/23/2023, 7:41 PM
Ah okay, sorry, what is the meta type? Would you mind demonstrating an example request?
j

Joey

03/23/2023, 7:45 PM
zed permission check resource_type:someresourcetypehere can_search user:someguy
a

akoenig

03/23/2023, 7:47 PM
Awesome. Thanks a lot, will give it a try with the Node.js client.