public function PanelizerEntityComment::entity_access in Panelizer 7.3
Determine if the current user has $op access on the $entity.
Overrides PanelizerEntityInterface::entity_access
File
- plugins/
entity/ PanelizerEntityComment.class.php, line 16 - Class for the Panelizer comment entity plugin.
Class
- PanelizerEntityComment
- Panelizer Entity comment plugin class.
Code
public function entity_access($op, $entity) {
if ($op == 'edit') {
return comment_access($op, $entity);
}
// The view operation is not implemented by core.
if ($op == 'view') {
return TRUE;
}
return FALSE;
}