-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Downloading a course that is "public"/"allows guests" but in which I'm not enrolled #71
Comments
This is somehow related to this very old request: #6 So this is actually desired behaviour so far. But it is actually useful to be able to choose courses in which you are not enrolled. But it would be more useful if we create an extra array in the configuration, because if you use the integrated configurator the courses you are not enrolled in would be removed from the list. As I explained in the old issue, for a hotfix you could just add your courses directly at this point: for e.g. like this (for the course
The shorter course name that you can specify in the configuration will be overwritten at this point: Currently I have a lot to do for the university, so if you feel like it you can try to implement something useful and create a PullRequest. You are very welcome to do so :) Otherwise I will tackle this in a few days, should not be a big effort. |
I think I can give it a go, do you have a discord so I can ask you some questions in a more direct manner ? |
c0d3d3v#8812 is my username in discord... if that does not work just send me a mail. |
I wasn't able to get you on discord so I'll just ask here. Do you know an endpoint that returns info about a course like its display name given the courseId ? Edit : Seems like |
Made a PR. Feel free to clone my PR and tweak it as you wish for formatting and naming of variables. |
I have created a wiki entry for this option and linked it in the readme. Feel free to edit it. Thank you so much for implementing this in such a great way. |
Avoid duplicates
Describe the bug
In my config I have :
I added that course id manually. Moodle Downloader won't sync this course as I'm not enrolled in it even if the course is available publicly and anyone can download the files. I got the id via the web app :
![image](https://user-images.githubusercontent.com/46449697/104216627-4b9d3e80-5408-11eb-9084-31bae1862b9b.png)
Is this intended behaviour ? I have not looked at the code yet but could this be easily worked around ?
Note: I went through all the logs generated and even the responses and the course id never comes up.
Steps to reproduce the issue
Try to download a course that is public but in which you are not enrolled.
Technical details
Expected behavior
If there is no permission error then the app should try to download the content from the requested course ids.
Possible Fix
Not familiar with the code and the flow but we could, but I'm guessing do not filter out courses that in which the student is not enrolled.
The text was updated successfully, but these errors were encountered: