function oa_comment_fasttoggle_comment_access_status in OA Comment 7.2
Allow access to unpublish comment if user created comment.
1 string reference to 'oa_comment_fasttoggle_comment_access_status'
- oa_comment_fasttoggle_available_links in ./
oa_comment.module - Implements hook_fasttoggle_available_links().
File
- ./
oa_comment.module, line 385
Code
function oa_comment_fasttoggle_comment_access_status($obj, $type, $group, $instance) {
global $user;
return fasttoggle_allow_access_if($type == 'comment' && $group == 'status' && !empty($obj->uid) && $obj->uid == $user->uid);
}