function views_check_perm

cis7 views.module views_check_perm($perm, $account = NULL)
cle7 views.module views_check_perm($perm, $account = NULL)
elmsmedia7 views.module views_check_perm($perm, $account = NULL)
icor7 views.module views_check_perm($perm, $account = NULL)
meedjum_blog7 views.module views_check_perm($perm, $account = NULL)
mooc7 views.module views_check_perm($perm, $account = NULL)

Access callback for the views_plugin_access_perm access plugin.

Determine if the specified user has access to a view on the basis of permissions. If the $account argument is omitted, the current user is used.

1 call to views_check_perm()
views_plugin_access_perm::access in sites/all/modules/ulmus/views/plugins/views_plugin_access_perm.inc
Determine if the current user has access or not.
1 string reference to 'views_check_perm'
views_plugin_access_perm::get_access_callback in sites/all/modules/ulmus/views/plugins/views_plugin_access_perm.inc
Determine the access callback and arguments.

File

sites/all/modules/ulmus/views/views.module, line 990
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_check_perm($perm, $account = NULL) {
  return user_access($perm, $account) || user_access('access all views', $account);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.