Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
fd22ee72
Commit
fd22ee72
authored
Nov 01, 2016
by
Robert Lyon
Committed by
Gerrit Code Review
Nov 01, 2016
Browse files
Merge "Bug 1540534: Apply the moderation setting from view to its artefacts"
parents
be184111
74ee809f
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/artefact/artefact.php
View file @
fd22ee72
...
...
@@ -151,7 +151,10 @@ EOF;
$javascript
=
array
(
'paginator'
,
'viewmenu'
);
if
(
$artefact
->
get
(
'allowcomments'
)
&&
(
$USER
->
is_logged_in
()
||
(
!
$USER
->
is_logged_in
()
&&
get_config
(
'anonymouscomments'
))))
{
$addfeedbackform
=
pieform
(
ArtefactTypeComment
::
add_comment_form
(
false
,
$artefact
->
get
(
'approvecomments'
)));
$commenttype
=
$view
->
user_comments_allowed
(
$USER
);
$moderate
=
isset
(
$commenttype
)
&&
$commenttype
===
'private'
;
$addfeedbackform
=
pieform
(
ArtefactTypeComment
::
add_comment_form
(
false
,
$moderate
));
}
$objectionform
=
pieform
(
objection_form
());
if
(
$notrudeform
=
notrude_form
())
{
...
...
Write
Preview
Supports
Markdown
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