Last active
April 15, 2017 20:08
-
-
Save craig-davis/aa668f8ad716d1130082e77bcb4ecd96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -7,8 +7,14 @@ class Post | |
$isAuthor = $this->getAuthorId() == $user->getId(); | |
+ $isSupervisor = $this->getRole() == 4; | |
+ $isSidebarPost = $this->getType() == 8; | |
$isTooOld = $this->created_at < time() — 2592000; | |
+ if ($isSupervisor && $isSidebarPost) { | |
+ return true; | |
+ } | |
+ | |
if ($isEditor || $isAdmin) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment