| 6 views.module | views_check_perm($perm, $account = NULL) |
| 7 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()
1 string reference to 'views_check_perm'
File
- ./
views.module, line 658 - 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);
}
Login or register to post comments