1 views.module | views_import_access() |
Access callback to determine if the user can import Views.
View imports require an additional access check because they are PHP code and PHP is more locked down than administer views.
File
- core/
modules/ views/ views.module, line 849 - Primarily Backdrop hooks and global API functions to manipulate views.
Code
function views_import_access() {
return user_access('administer views') && user_access('use PHP for settings');
}