Commit 3e04985f authored by ROBERT PATRICK CAREY III's avatar ROBERT PATRICK CAREY III 🗿
Browse files

Update user_preferences.module

parent 7a4f9ae1
......@@ -48,7 +48,7 @@ function user_preferences_node_links_alter(array &$links, NodeInterface $node, a
$is_book = isset($node->book['bid']);
if(!$is_admin){
$can_add_child_page = in_array('Add content and child pages to books and manage their hierarchies', user_role_permissions($user->getRoles()));
$can_add_child_page = $user->hasPermission('Add content and child pages to books and manage their hierarchies');
}
if ($context['view_mode'] == 'full' && node_is_page($node)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment