Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
74b6860a
Commit
74b6860a
authored
Jan 15, 2011
by
Petr Skoda
Browse files
CONTRIB-2656 fix disabling of printing
parent
292a46eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
view.php
View file @
74b6860a
...
...
@@ -52,7 +52,7 @@ require_capability('mod/book:read', $context);
$allowedit
=
has_capability
(
'mod/book:edit'
,
$context
);
$allowimport
=
has_capability
(
'mod/book:import'
,
$context
);
$allowprint
=
has_capability
(
'mod/book:print'
,
$context
)
and
!
$book
->
disableprinting
;
$allowprint
=
(
has_capability
(
'mod/book:print'
,
$context
)
and
!
$book
->
disableprinting
)
;
$allowexport
=
has_capability
(
'mod/book:exportimscp'
,
$context
);
$viewhidden
=
has_capability
(
'mod/book:viewhiddenchapters'
,
$context
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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