Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Limit number of future reservations for a given EquipmentModel #1312

Open
@orenyk

Description

@orenyk

Again, from BMEC:

Working through extended reservation requests, it occurs to me that it would be useful to be able to limit the number of future reservations a patron can have for a single piece of equipment ... I'd also like to make it impossible, for example, for a single patron to reserve one piece of equipment every single weekend (the way Reservations works, a single patron can for example reserve one of our lenses, of which there is only one each, every weekend for the foreseeable future).

This would be a separate EquipmentModel parameter (e.g. max_future_res) - we can also think about adding a Category limitation as well while we're at it. We'd have to add the parameter to the model (incl. strong params in the controller), set up the relevant methods, and finally set up the validation for the Cart. This is less urgent than #1311, but we can get it done sooner rather than later.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions