You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!empty($recording->downloadurl) && $showdownload) {
The intention in the code seems to be (i could be wrong) that the user with the capability in moodle to download the recording ('mod/collaborate:downloadrecordings'), can download it always, even if configuration option $ collaborate-> candownloadrecordings is set to false, but the if statement, if check ((! empty ($ recording-> downloadurl) && $ showdownload), prevent this behavior. Changing the if statement to if ($showdownload) or even if ((!empty($recording->downloadurl) && $showdownload)|| $downloadcap) would correct it.
The text was updated successfully, but these errors were encountered:
Thanks for posting this. I thought I was crazy when students still had the download recordings option, even though globally students were "prohibited" from that capability. Glad someone else sees this same issue, and it looks like you may have identified where the error occurs.
moodle-mod_collaborate/renderer.php
Line 294 in bbf0fa9
The intention in the code seems to be (i could be wrong) that the user with the capability in moodle to download the recording ('mod/collaborate:downloadrecordings'), can download it always, even if configuration option
$ collaborate-> candownloadrecordings
is set to false, but theif
statement,if check ((! empty ($ recording-> downloadurl) && $ showdownload)
, prevent this behavior. Changing the if statement toif ($showdownload)
or evenif ((!empty($recording->downloadurl) && $showdownload)|| $downloadcap)
would correct it.The text was updated successfully, but these errors were encountered: