-
Notifications
You must be signed in to change notification settings - Fork 1
Add BBB requirement to certain venues (all venues except kees) #585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
The tests fail because of this because the test does not specify the BBB, how do I say in the test that the user has a BBB? |
|
This change is not possible in this way. We have a small problem here maybe @JobDoesburg knows a nice solution. We don't want any circular dependencies in TOSTI but with this change we create circular dependencies because Additionally, @vincevd1 I think the check needs to be extracted from the form into the view. The form checks usually do not check permissions of users, we should do that in the forms. You should also adjust the checks in the API endpoints. Don't forget that a borrel reservation can also trigger a venue reservation so there should probably also be a check made there. |
|
RT Lars. Because the check is enforced in the view, not in the model or admin it doesnt actually crash right now, but the dependency is circular which will cause problems at some point |
|
Ah yeah that is a good point. In that case I think it would also be better to move BasicBorrelBrevet. Maybe it can be the attribute of a user so we move it into the user app? I don't really understand what you mean with we should enforce the permission check in the view instead of the form. Do you mean when the user submits the form? Or in I did forget to implement the check in the API and will change this soon. Also I don't think we have to worry about the borrel reservation triggering a venue reservation since you need a BBB for a borrel reservation anyway. |
|
I dont RT Lars on the second point yeah. the check is correctly done in the view (and what's in forms should also be like this). |
|
I have rebased this MR for you. Specifically, the following changes are still required:
|
e8d8aa4 to
4968bb3
Compare
…ther it is required
4968bb3 to
a0258c2
Compare
|
You can fix the |
Olympus requested for an option to make canteen reservations impossible for people without a BBB.
This commit implements that.