Skip to content
Snippets Groups Projects
Commit 834bd9cc authored by Camille Simiand's avatar Camille Simiand
Browse files

Fix editor non author can remove himself as editor

parent d4c704e7
Branches
Tags
1 merge request!75tuleap-193-capsule-editor-non-author-should-be-able-to-remove-himself-as-editor
Pipeline #914 passed
...@@ -243,7 +243,7 @@ class CapsuleEditorController extends AbstractController ...@@ -243,7 +243,7 @@ class CapsuleEditorController extends AbstractController
return $this->redirectToRoute('app_logout'); return $this->redirectToRoute('app_logout');
} }
if ($editor === $current_user) { if ($editor_id === $capsule->getCreationAuthor()->getId()) {
$this->addFlash( $this->addFlash(
'warning', 'warning',
$this->translator->trans( $this->translator->trans(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment