Issue #1907876 by dawehner: Remove views_import_access().
parent
a331965b58
commit
63792c76df
|
@ -704,16 +704,6 @@ function views_invalidate_cache() {
|
||||||
module_invoke_all('views_invalidate_cache');
|
module_invoke_all('views_invalidate_cache');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
function views_import_access() {
|
|
||||||
return user_access('administer views') && user_access('use PHP for settings');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if the logged in user has access to a view.
|
* Determine if the logged in user has access to a view.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue