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
No related branches found
No related tags found
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
return $this->redirectToRoute('app_logout');
}
if ($editor === $current_user) {
if ($editor_id === $capsule->getCreationAuthor()->getId()) {
$this->addFlash(
'warning',
$this->translator->trans(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment