if (GroupManager::is_tutor_of_group(api_get_user_id(), $groupInfo) || api_is_allowed_to_edit(false, true)) {
if (GroupManager::is_tutor_of_group(api_get_user_id(), $groupInfo) ||
api_is_allowed_to_edit(false, true)
) {
$filterModerated = false;
}
}
@ -2425,7 +2424,9 @@ function get_forumcategory_information($cat_id)
$course_id = api_get_course_int_id();
$sql = "SELECT *
FROM ".$table_categories." forumcategories, ".$table_item_property." item_properties
FROM $table_categories forumcategories
INNER JOIN $table_item_property item_properties
ON (forumcategories.c_id = item_properties.c_id)
WHERE
forumcategories.c_id = $course_id AND
item_properties.c_id = $course_id AND
@ -2854,8 +2855,10 @@ function store_thread(
* @param string $action is the parameter that determines if we are
* 1. newthread: adding a new thread (both empty) => No I-frame
* 2. replythread: Replying to a thread ($action = replythread) => I-frame with the complete thread (if enabled)
* 3. replymessage: Replying to a message ($action =replymessage) => I-frame with the complete thread (if enabled) (I first thought to put and I-frame with the message only)
* 4. quote: Quoting a message ($action= quotemessage) => I-frame with the complete thread (if enabled). The message will be in the reply. (I first thought not to put an I-frame here)
* 3. replymessage: Replying to a message ($action =replymessage) => I-frame with the complete thread (if enabled)
* (I first thought to put and I-frame with the message only)
* 4. quote: Quoting a message ($action= quotemessage) => I-frame with the complete thread (if enabled).
* The message will be in the reply. (I first thought not to put an I-frame here)
* @return FormValidator
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University
* @version february 2006, dokeos 1.8
@ -3183,7 +3186,6 @@ function saveThreadScore(
return 'insert';
} else {
saveThreadScoreHistory(
'1',
$course_id,
@ -3191,7 +3193,6 @@ function saveThreadScore(
$thread_id
);
// Update
$sql = "UPDATE $table_threads_qualify
SET
@ -3333,7 +3334,6 @@ function saveThreadScoreHistory(
// TODO: Security should be implemented outside this function.
// Change this to COURSEMANAGERLOWSECURITY or COURSEMANAGER to lower filtering and allow more styles (see comments of Security::remove_XSS() method to learn about other levels).
// Change this to COURSEMANAGERLOWSECURITY or COURSEMANAGER to lower filtering and allow more styles
// (see comments of Security::remove_XSS() method to learn about other levels).