You are here

protected function HeartbeatActivity::set_delete_access in Heartbeat 7

protected function to set the delete access for the message.

1 call to HeartbeatActivity::set_delete_access()
HeartbeatActivity::__construct in includes/heartbeatactivity.inc
constructor

File

includes/heartbeatactivity.inc, line 547
HeartbeatActivity object Defines one heartbeat activity object.

Class

HeartbeatActivity
Class defines an activity message object

Code

protected function set_delete_access() {
  $this->delete_access = user_access('admin heartbeat delete all');
  $this->actor_access = $this->delete_access || $this->uid == $GLOBALS['user']->uid && user_access('admin heartbeat delete own');
}