ResourceMetaAuth
Access configuration for a resource. Used as part of ResourceMeta to determine if a resource can be accessed without explicit permissions when certain conditions are met.
Properties
accessByUserId
accessByUserId:
boolean
When true, enables access to resources whose userId property matches the current user's id without requiring explicit permissions.
accessByWorkspaceId
accessByWorkspaceId:
boolean
When true, enables access to resources whose workspaceId property matches the current workspace's id without requiring explicit permissions.
belowLevelAllowedCrudByUserId
belowLevelAllowedCrudByUserId:
CrudAction[]
Crud operations allowed when the userId property of the resource matches the current user's id, even if the user doesn't have explicit permissions.
belowLevelAllowedCrudByWorkspaceId
belowLevelAllowedCrudByWorkspaceId:
CrudAction[]
Crud operations allowed when the workspaceId property of the resource matches the current workspace's id, even if the user doesn't have explicit permissions.