function asset_delete_access in Asset 7
Check what user have access to delete asset with given type.
2 calls to asset_delete_access()
- assets_entity_access_callback in ./
asset.module - Access callback for the entity API.
- asset_base_form in includes/
asset.admin.inc - Base form builder.
File
- ./
asset.module, line 261 - Asset module.
Code
function asset_delete_access($type, $account = NULL) {
return user_access('administer assets') || user_access("delete asset with type {$type}", $account);
}