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

PeriodPositionFreeLog : autoriser la suppression par un SUPER_ADMIN #852

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented May 15, 2023

Suite de #840 ; similaire à #832

Quoi ?

Dans de rares cas, on souhaite pouvoir supprimer un PeriodPositionFreeLog.
Comme c'est le cas pour les TimeLog, on autorise les ROLE_SUPER_ADMIN à supprimer.

Capture d'écran

image

@raphodn raphodn self-assigned this May 15, 2023
@raphodn raphodn requested review from symartin and petitalb May 15, 2023 14:43
$form->handleRequest($request);

if ($form->isSubmitted() && $form->isValid()) {
$em->remove($periodPositionFreeLog);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

par contre j'ai à nouveau l'erreur au moment de la suppression (comme l'autre PR)

Unrecognized field: created_at

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

j'ai testé en pré-prod et j'ai l'erreur aussi

@raphodn raphodn linked an issue Oct 18, 2023 that may be closed by this pull request
2 tasks
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.

Semaine type : garder une trâce des créneaux fixes passés d'un membre
1 participant