You are here

function asset_insert_asset_access in Asset 7

Check what user have access to insert assets into WYSIWYG body.

2 calls to asset_insert_asset_access()
assets_pre_render_text_format in ./asset.module
This function adds a settings required by assets
asset_insert_asset_views_access in ./asset.module
Wrapper for get_access_callback() in custom permission handler.
1 string reference to 'asset_insert_asset_access'
asset_menu in ./asset.module
Implements hook_menu().

File

./asset.module, line 268
Asset module.

Code

function asset_insert_asset_access($account = NULL) {
  return user_access('administer assets', $account) || module_exists('asset_widget') && user_access('access search widget', $account);
}