--- title: "Non-members must purchase a pass to book a resource" slug: "non-members-must-purchase-a-pass-to-book-a-resource" updated: 2024-03-14T10:35:46Z published: 2024-03-14T10:35:46Z canonical: "help.nexudus.com/non-members-must-purchase-a-pass-to-book-a-resource" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://help.nexudus.com/llms.txt > Use this file to discover all available pages before exploring further. # Non-members must purchase a pass to book a resource This rule prevents customers who aren't members to book a specific resource if they don't purchase a specific pass with it. --- 1. Log in to [dashboard.nexudus.com](https://dashboard.nexudus.com/) if you aren't already. 2. Click [**Settings > Validation rules**](https://dashboard.nexudus.com/settings/3/0/0). 3. Click **Add rule**. 4. Click on **Manual entry**. 5. Name your validation rule. 6. Add a **Description** for your rule to let other admins know what it does at a glance. 7. Toggle on **This rule is active**. 8. Select **Bookings** in the **Record type**. 9. Add the **Error message to display if the validation rule is not met**. 10. Add the following code snippet to the **Formula** field. ``` record.Resource.Id<> RESOURCE_ID OR record.Coworker.IsMember() OR HasProduct(record, PRODUCT_ID) ``` 1. 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) 1. 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**) 1. 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.