function oa_wizard_access in Open Atrium Wizard 7.2
Determines whether the given user has access to a model.
Parameters
$op: The operation being performed. One of 'view', 'update', 'create', 'delete' or just 'edit' (being the same as 'create' or 'update').
$model: Optionally a model or a model type to check access for. If nothing is given, access for all models is determined.
$account: The user to check for. Leave it to NULL to check for the global user.
Return value
boolean Whether access is allowed or not.
3 calls to oa_wizard_access()
- oa_wizard_handler_field_delete_entity::render_link in plugins/
views/ oa_wizard_handler_field_delete_entity.inc - Renders the link.
- oa_wizard_handler_field_edit_entity::render_link in plugins/
views/ oa_wizard_handler_field_edit_entity.inc - Renders the link.
- oa_wizard_handler_field_view_entity::render_link in plugins/
views/ oa_wizard_handler_field_view_entity.inc
1 string reference to 'oa_wizard_access'
- oa_wizard_entity_info in ./
oa_wizard.module - Implements hook_crud_hook_entity_info().
File
- ./
oa_wizard.module, line 324 - Code for the OpenAtrium Wizard.
Code
function oa_wizard_access($op, $wizard = NULL, $account = NULL) {
return user_access('administer site configuration', $account);
}