This rule prevents customers who aren't members to book a specific resource if they don't purchase a specific pass with it.
- 
Log in to dashboard.nexudus.com if you aren't already. 
- 
Click Settings > Validation rules. 
- 
Click Add rule. 
- 
Click on Manual entry. 
- 
Name your validation rule. 
- 
Add a Description for your rule to let other admins know what it does at a glance. 
- 
Toggle on This rule is active. 
- 
Select Bookings in the Record type. 
- 
Add the Error message to display if the validation rule is not met. 
- 
Add the following code snippet to the Formula field. 
record.Resource.Id<> RESOURCE_ID OR record.Coworker.IsMember()  OR HasProduct(record, PRODUCT_ID)
- Replace RESOURCE_ID with the relevant resource ID.
In the example below, the resource ID is 1111111.
record.Resource.Id<> 1111111 OR record.Coworker.IsMember() OR HasProduct(record, PRODUCT_ID)
- Replace PRODUCT_ID with the relevant product ID.
In the example below, the product ID is 123456789.
record.Resource.Id<> 1111111 OR record.Coworker.IsMember() OR HasProduct(record, 123456789)
- Click the Save Changes button. 
All done! We recommend trying to book the relevant resource using a test customer account that isn't a member and hasn't purchased the relevant pass. If you see your error message displayed as you try to check out, you're good to go.