function _outline_child_pages_ajax_access in Outline Designer 6
Same name and namespace in other branches
- 6.2 modules/outline_child_pages/outline_child_pages.module \_outline_child_pages_ajax_access()
- 7.2 modules/outline_child_pages/outline_child_pages.module \_outline_child_pages_ajax_access()
- 7 outline_child_pages/outline_child_pages.module \_outline_child_pages_ajax_access()
check to make sure they can access the ajax path, doesn't mean it'll commit their operation, just that it'll load this also has optional integration with the book manager module so that people could use the advantages of both modules and not need 'outline own pages' permissions
1 string reference to '_outline_child_pages_ajax_access'
- outline_child_pages_menu in outline_child_pages/
outline_child_pages.module - Implementation of hook_menu().
File
- outline_child_pages/
outline_child_pages.module, line 52
Code
function _outline_child_pages_ajax_access() {
global $user;
return $user->uid == 1 || user_access('administer book outlines') || user_access('outline own pages') && user_access('add content to books') || user_access('add content to personal books');
}