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.

Banned user validations #1185

Closed
Closed
@orenyk

Description

@orenyk

User feedback (running v3.4.8):

Banned users are able to make reservations + check out equipment in the Equipment Loan Office. Also, there is no notification/prompt stating that the user is banned when the workers type in their NetID during checkout.
Any help to remedy this issue would be greatly appreciated since users get banned for a reason(s) and we would prefer not to lend our equipment to them.

Currently, we only enforce "banning" on actions that the banned user performs themselves, but other users (e.g. checkout persons) can still create reservations for them and perform reservation actions for them (e.g. check out equipment).

To Do:

  • Add banned user validation to the cart
  • Add banned user validation for the checkout action
    • This should be soft, we probably want to allow admins and above to override with a warning but otherwise banned users should not be given equipment for any pre-existing reservations. That said, we need to allow other reservation actions (e.g. checkin, edit, etc) regardless of reserver status so that equipment can be returned and other stuff can be done.
  • Add flash message [edit: and redirect] when viewing manage / current / other views for banned users

This is pretty urgent, adding it to v5.2.0

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

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions