protected function OgHeartbeat::hasAccess in Heartbeat 6.4
hasAccess
Checks access for this stream.
Overrides HeartbeatAccess::hasAccess
File
- modules/
og_activity/ ogheartbeat.inc, line 44
Class
- OgHeartbeat
- Class OgHeartbeat Concrete class to prepare messages for the current user and all of his/her relations.
Code
protected function hasAccess() {
// If the user has access to this node (member or public group).
if (isset($this->group) && (og_is_group_member($this->group) || $this->group->og_private == 0)) {
$this->_group_access = TRUE;
}
if (!isset($this->group)) {
$this
->setError('We are not in a group context.');
}
return $this->_group_access;
}