func (WorkOrder) Policy() ent.Policy {
	return authz.NewPolicy(
		authz.WithQueryRules(
			authz.WorkOrderReadPolicyRule(),
		),
		authz.WithMutationRules(
			authz.WorkOrderWritePolicyRule(),
			authz.AllowWorkOrderOwnerOrAssigneeWrite(),
		),
	)
}
// Policy returns work order policy.
Policy returns work order policy.
// Policy returns work order policy .
func (WorkOrder) Policy() ent.Policy {
	return authz.NewPolicy(
		authz.WithQueryRules(
			authz.WorkOrderReadPolicyRule(),
		),
		authz.WithMutationRules(
			authz.WorkOrderWritePolicyRule(),
			authz.AllowWorkOrderOwnerOrAssigneeWrite(),
		),
	)
}
func ( WorkOrder ) Policy ( ) ent . Policy { return authz . NewPolicy ( authz . WithQueryRules ( authz . WorkOrderReadPolicyRule ( ) , ) , authz . WithMutationRules ( authz . WorkOrderWritePolicyRule ( ) , authz . AllowWorkOrderOwnerOrAssigneeWrite ( ) , ) , ) }
Policy returns work order policy.
Policy returns work order policy .