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

Roles : restreindre la suppression de poste type aux ADMIN #766

Merged
merged 4 commits into from
Feb 26, 2023

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Feb 22, 2023

Suite de #765

Quoi ?

La suppression d'un créneau type (Period) est déjà reservé aux ADMIN.
On étend ici cette restriction à la suppression d'un poste type (PeriodPosition).

J'en ai profité aussi pour renommer / cleaner les routes et les formulaires de PeriodController

Pourquoi ?

  • pour éviter les erreurs
  • actuellement on ne log pas les actions de suppression effectuées sur ces objets

@raphodn raphodn requested a review from petitalb February 22, 2023 15:25
@raphodn raphodn self-assigned this Feb 22, 2023
Base automatically changed from raphodn/shift-delete-admin to master February 26, 2023 15:00
@raphodn raphodn force-pushed the raphodn/period-delete-admin branch from 99bc983 to c29a4a9 Compare February 26, 2023 15:01
@raphodn raphodn merged commit 86b39f5 into master Feb 26, 2023
@raphodn raphodn deleted the raphodn/period-delete-admin branch February 26, 2023 15:03
quot17 pushed a commit to quot17/gestion-compte that referenced this pull request Mar 28, 2023
…enoble#766)

* Remove unused period/list.html template

* Rename & create forms in controller

* Cleanup route names

* Only ADMIN can delete periodposition
OursDesCavernes pushed a commit to Les400Coop/gestion-compte that referenced this pull request Jan 20, 2024
…enoble#766)

* Remove unused period/list.html template

* Rename & create forms in controller

* Cleanup route names

* Only ADMIN can delete periodposition
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.

2 participants