Hi,
I would like to ask in hook I created about the value of userRole.
I found that owner is ‘siteOwner’ but cannot find the value for regular member and visitor.
export async function Matching_beforeQuery(query, context) {
}
and inside i’m asking:
if (context.userRole === ‘siteOwner’)
same I need:
if (context.userRole === ‘member’)
and
if (context.userRole === ‘visitor’)
but this is probably not the right values
Appreciate you help