You are here

function asset_insert_asset_views_access in Asset 7

Wrapper for get_access_callback() in custom permission handler.

1 call to asset_insert_asset_views_access()
asset_views_plugin_access_asset_insert_in_wysiwyg::access in views/handlers/asset_views_plugin_access_asset_insert_in_wysiwyg.inc
Determine if the current user has access or not.
1 string reference to 'asset_insert_asset_views_access'
asset_views_plugin_access_asset_insert_in_wysiwyg::get_access_callback in views/handlers/asset_views_plugin_access_asset_insert_in_wysiwyg.inc
Determine the access callback and arguments.

File

./asset.module, line 277
Asset module.

Code

function asset_insert_asset_views_access($account = NULL) {
  return asset_insert_asset_access() || user_access('access all views', $account);
}