Skip to content
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

Admin : nouveau paramètre qui permet d'empêcher les membres de réserver leur propre créneau #805

Merged
merged 3 commits into from
Apr 15, 2023

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Apr 5, 2023

Quoi ?

  • nouveau paramètre forbid_own_shift_book_admin
  • si vrai, alors les membres qui ont accès à l'interface admin (mais qui ne sont pas ROLE_ADMIN) ne pourront pas réserver leur propre créneaux (ils devront faire comme les autres membres et passer par /booking)

@raphodn raphodn requested a review from petitalb April 5, 2023 10:02
@raphodn raphodn self-assigned this Apr 5, 2023
@petitalb petitalb merged commit 0d122dc into master Apr 15, 2023
@petitalb petitalb deleted the feature/shift-book-disable-self branch April 15, 2023 15:26
@raphodn raphodn linked an issue Apr 16, 2023 that may be closed by this pull request
6 tasks
OursDesCavernes pushed a commit to Les400Coop/gestion-compte that referenced this pull request Jan 20, 2024
…er leur propre créneau (elefan-grenoble#805)

* If forbid_own_shift_book_admin, then non-admin cannot book their own shift in admin

* Rename current_app_user to current_user

* If forbid_own_timelog_new_admin, then non-admin cannot add timelog to their own account in admin (elefan-grenoble#806)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Admin : restreindre les actions possibles sur son propre compte
2 participants