Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are user moodle download capabilities ignored when displaying the recording download link? #20

Open
monrom opened this issue Sep 16, 2021 · 1 comment

Comments

@monrom
Copy link

monrom commented Sep 16, 2021

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.

@spibullock
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants