function _heartbeat_message_delete_access in Heartbeat 7
Same name and namespace in other branches
- 6.4 heartbeat.common.inc \_heartbeat_message_delete_access()
Helper function to check if a user has access to delete a message
1 string reference to '_heartbeat_message_delete_access'
- heartbeat_menu in ./
heartbeat.module - Implements hook_menu().
File
- ./
heartbeat.module, line 1775 - Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.
Code
function _heartbeat_message_delete_access($heartbeatActivity) {
if (user_access('admin heartbeat delete all')) {
return TRUE;
}
return $heartbeatActivity->uid == $GLOBALS['user']->uid && user_access('admin heartbeat delete own');
}