Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // if($this->checkAccess($content, Content::STATUS_TO_ASSIGN, [Content::GROUP_CONTENT_MANAGER, Content::GROUP_TLC])) {
- // return $this->redirectToRoute('content.to.assign', ['id' => $content->getId()]);
- // }
- //
- // if($this->checkAccess($content, Content::STATUS_TO_WRITE, [Content::GROUP_COPYWRITER, Content::GROUP_OUTSIDE_COPYWRITER], 'copywriter')) {
- // return $this->redirectToRoute('content.to.write', ['id' => $content->getId()]);
- // }
- //
- // if($this->checkAccess($content, Content::STATUS_WITHHOLD, [Content::GROUP_COPYWRITER, Content::GROUP_OUTSIDE_COPYWRITER], 'copywriter')) {
- // return $this->redirectToRoute('content.to.write', ['id' => $content->getId()]);
- // }
- //
- // if($this->checkAccess($content, Content::STATUS_TO_REVISE, [Content::GROUP_CONTENT_MANAGER, Content::GROUP_TLC, Content::GROUP_REVISOR])) {
- // return $this->redirectToRoute('content.to.revise', ['id' => $content->getId()]);
- // }
- //
- // if($this->checkAccess($content, Content::STATUS_REVISE, Content::GROUP_REVISOR, 'revisor')) {
- // return $this->redirectToRoute('content.revise', ['id' => $content->getId()]);
- // }
- //
- // if($this->checkAccess($content, Content::STATUS_AFTER_REVISE, [Content::GROUP_CONTENT_MANAGER, Content::GROUP_TLC])) {
- // return $this->redirectToRoute('content.after.revise', ['id' => $content->getId()]);
- // }
- //
- // if($this->checkAccess($content, Content::STATUS_TO_CHECK, Content::GROUP_MERITOR, 'meritor')) {
- // return $this->redirectToRoute('content.to.check', ['id' => $content->getId()]);
- // }
- //
- // if($content->getStatus() == Content::STATUS_CHECKED && $content->getTextType() == 'zewnetrzny') {
- // if($this->checkAccess($content, Content::STATUS_CHECKED, [Content::GROUP_SEO, Content::GROUP_CONTENT_MANAGER, Content::GROUP_CLIENT_SERVICE], 'publisher')) {
- // return $this->redirectToRoute('content.checked', ['id' => $content->getId()]);
- // }
- // } elseif ($content->getStatus() == Content::STATUS_CHECKED && $content->getTextType() != 'zewnetrzny') {
- // if($this->checkAccess($content, Content::STATUS_CHECKED, [Content::GROUP_CONTENT_MANAGER, Content::GROUP_TLC])) {
- // return $this->redirectToRoute('content.checked', ['id' => $content->getId()]);
- // }
- // }
- return $this->render('CopywritingBundle:Content:Show.html.twig', [
- 'content' => $content,
- 'logs' => $this->getDoctrine()->getRepository('AppBundle:Logs')->getLogsByName("content.{$content->getId()}")
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement