public function PanelizerEntityUser::entity_access in Panelizer 7.2
Same name and namespace in other branches
- 7.3 plugins/entity/PanelizerEntityUser.class.php \PanelizerEntityUser::entity_access()
Determine if the current user has $op access on the $entity.
Overrides PanelizerEntityInterface::entity_access
File
- plugins/
entity/ PanelizerEntityUser.class.php, line 18 - Class for the Panelizer taxonomy term entity plugin.
Class
- PanelizerEntityUser
- Panelizer Entity user plugin class.
Code
public function entity_access($op, $entity) {
// This must be implemented by the extending class.
if ($op == 'update' || $op == 'delete') {
return user_edit_access($entity);
}
if ($op == 'view') {
return user_view_access($entity);
}
return FALSE;
}