@@ 259-270 (lines=12) @@ | ||
256 | * |
|
257 | * @return null|Member |
|
258 | */ |
|
259 | protected function getMember($member = null) |
|
260 | { |
|
261 | if (!$member) { |
|
262 | $member = Security::getCurrentUser(); |
|
263 | } |
|
264 | ||
265 | if (is_numeric($member)) { |
|
266 | $member = Member::get()->byID($member); |
|
267 | } |
|
268 | ||
269 | return $member; |
|
270 | } |
|
271 | ||
272 | /** |
|
273 | * Check if this member is an editor of the blog. |
@@ 410-421 (lines=12) @@ | ||
407 | * |
|
408 | * @return null|Member |
|
409 | */ |
|
410 | protected function getMember($member = null) |
|
411 | { |
|
412 | if (!$member) { |
|
413 | $member = Security::getCurrentUser(); |
|
414 | } |
|
415 | ||
416 | if (is_numeric($member)) { |
|
417 | $member = Member::get()->byID($member); |
|
418 | } |
|
419 | ||
420 | return $member; |
|
421 | } |
|
422 | ||
423 | /** |
|
424 | * Determine whether user can create new categories. |