function comment_perm_edit_access in Comment Permissions 7.2
Same name and namespace in other branches
- 6 comment_perm.module \comment_perm_edit_access()
- 7 comment_perm.module \comment_perm_edit_access()
Determine access to edit comments for current node type.
Parameters
object $node: Node object.
Return value
bool TRUE - Current node type has permission access, FALSE otherwise.
2 calls to comment_perm_edit_access()
- comment_perm_comment_view_alter in ./
comment_perm.module - Implements hook_comment_view_alter().
- comment_perm_form_alter in ./
comment_perm.module - Implements hook_form_alter().
File
- ./
comment_perm.module, line 288 - Control commenting permissions by role and by node type.
Code
function comment_perm_edit_access($node) {
return user_access("edit own comments {$node->type}");
}