code/pagetypes/Forum.php 1 location
|
@@ 87-98 (lines=12) @@
|
| 84 |
|
|
| 85 |
|
if($this->CanPostType == "Anyone" || $this->canEdit($member)) return true; |
| 86 |
|
|
| 87 |
|
if($member = Member::currentUser()) { |
| 88 |
|
if($member->IsSuspended()) return false; |
| 89 |
|
if($member->IsBanned()) return false; |
| 90 |
|
|
| 91 |
|
if($this->CanPostType == "LoggedInUsers") return true; |
| 92 |
|
|
| 93 |
|
if($groups = $this->PosterGroups()) { |
| 94 |
|
foreach($groups as $group) { |
| 95 |
|
if($member->inGroup($group)) return true; |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
return false; |
| 101 |
|
} |
code/pagetypes/ForumHolder.php 1 location
|
@@ 164-174 (lines=11) @@
|
| 161 |
|
|
| 162 |
|
if($this->CanPostType == "Anyone" || $this->canEdit($member)) return true; |
| 163 |
|
|
| 164 |
|
if($member) { |
| 165 |
|
if($member->IsSuspended()) return false; |
| 166 |
|
if($member->IsBanned()) return false; |
| 167 |
|
if($this->CanPostType == "LoggedInUsers") return true; |
| 168 |
|
|
| 169 |
|
if($groups = $this->PosterGroups()) { |
| 170 |
|
foreach($groups as $group) { |
| 171 |
|
if($member->inGroup($group)) return true; |
| 172 |
|
} |
| 173 |
|
} |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
return false; |
| 177 |
|
} |