Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Statistics
lessons
Commits
3e98e0b0
Commit
3e98e0b0
authored
Nov 05, 2019
by
ROBERT PATRICK CAREY III
🗿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update user_preferences.module
parent
3e04985f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/user_preferences/user_preferences.module
modules/user_preferences/user_preferences.module
+1
-1
No files found.
modules/user_preferences/user_preferences.module
View file @
3e98e0b0
...
...
@@ -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
=
$user
->
hasPermission
(
'
A
dd content
and child pages to books and manage their hierarchie
s'
);
$can_add_child_page
=
$user
->
hasPermission
(
'
a
dd content
to book
s'
);
}
if
(
$context
[
'view_mode'
]
==
'full'
&&
node_is_page
(
$node
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment