Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.67 KB | None | 0 0
  1. //
  2. //        if($this->checkAccess($content, Content::STATUS_TO_ASSIGN, [Content::GROUP_CONTENT_MANAGER, Content::GROUP_TLC])) {
  3. //            return $this->redirectToRoute('content.to.assign', ['id' => $content->getId()]);
  4. //        }
  5. //
  6. //        if($this->checkAccess($content, Content::STATUS_TO_WRITE, [Content::GROUP_COPYWRITER, Content::GROUP_OUTSIDE_COPYWRITER], 'copywriter')) {
  7. //            return $this->redirectToRoute('content.to.write', ['id' => $content->getId()]);
  8. //        }
  9. //
  10. //        if($this->checkAccess($content, Content::STATUS_WITHHOLD, [Content::GROUP_COPYWRITER, Content::GROUP_OUTSIDE_COPYWRITER], 'copywriter')) {
  11. //            return $this->redirectToRoute('content.to.write', ['id' => $content->getId()]);
  12. //        }
  13. //
  14. //        if($this->checkAccess($content, Content::STATUS_TO_REVISE, [Content::GROUP_CONTENT_MANAGER, Content::GROUP_TLC, Content::GROUP_REVISOR])) {
  15. //            return $this->redirectToRoute('content.to.revise', ['id' => $content->getId()]);
  16. //        }
  17. //
  18. //        if($this->checkAccess($content, Content::STATUS_REVISE, Content::GROUP_REVISOR, 'revisor')) {
  19. //            return $this->redirectToRoute('content.revise', ['id' => $content->getId()]);
  20. //        }
  21. //
  22. //        if($this->checkAccess($content, Content::STATUS_AFTER_REVISE, [Content::GROUP_CONTENT_MANAGER, Content::GROUP_TLC])) {
  23. //            return $this->redirectToRoute('content.after.revise', ['id' => $content->getId()]);
  24. //        }
  25. //
  26. //        if($this->checkAccess($content, Content::STATUS_TO_CHECK, Content::GROUP_MERITOR, 'meritor')) {
  27. //            return $this->redirectToRoute('content.to.check', ['id' => $content->getId()]);
  28. //        }
  29. //
  30. //        if($content->getStatus() == Content::STATUS_CHECKED && $content->getTextType() == 'zewnetrzny') {
  31. //            if($this->checkAccess($content, Content::STATUS_CHECKED, [Content::GROUP_SEO, Content::GROUP_CONTENT_MANAGER, Content::GROUP_CLIENT_SERVICE], 'publisher')) {
  32. //                return $this->redirectToRoute('content.checked', ['id' => $content->getId()]);
  33. //            }
  34. //        } elseif ($content->getStatus() == Content::STATUS_CHECKED && $content->getTextType() != 'zewnetrzny') {
  35. //            if($this->checkAccess($content, Content::STATUS_CHECKED, [Content::GROUP_CONTENT_MANAGER, Content::GROUP_TLC])) {
  36. //                return $this->redirectToRoute('content.checked', ['id' => $content->getId()]);
  37. //            }
  38. //        }
  39.  
  40.         return $this->render('CopywritingBundle:Content:Show.html.twig', [
  41.             'content'  => $content,
  42.             'logs' => $this->getDoctrine()->getRepository('AppBundle:Logs')->getLogsByName("content.{$content->getId()}")
  43.         ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement