tmuras / moosh

Moosh
GNU General Public License v3.0
229 stars 175 forks source link

Course-Unenrol #29

Open ghost opened 10 years ago

ghost commented 10 years ago

I think it would be great if the Course-Unenrol function didn't remove all users with a certain role, but allowed you to specify a user id number so it would be like:

mouse course-unenrol --role rolegoeshere --user userid courseid moosh course-unenrol --role editingteacher --user 1 144

I could take a crack at it, but wondered if it would be easier for you to look at if you thought it was a useful change.

tmuras commented 10 years ago

Hi Andy,

Give it a go - if you run into problems with the code, I'll help you.

ElSt commented 10 years ago

Hi,

i'm also interested in having users unenrolled the way Andy proposed. If there any progress in that please inform.

Thanks!

dkns commented 10 years ago

This is a WIP. Should be available soon™

ElSt commented 10 years ago

Thanks Daniel,

looking forward to it!

ghost commented 10 years ago

This seems to be available now:

moosh course-unenrol 1005 508

Will unenroll user 508 from course 1005. But how can I run it with multiple user IDs at once?

dkns commented 10 years ago

@icefresh89 if you pull the newest version from github you should be able to unenrol multiple users by providing their id numbers e.g. course-unenrol 1005 508 509 510

ghost commented 10 years ago

@dkns You're the man! Thank you so much!

dkns commented 9 years ago

@zom-rpg @ElSt Could you pull newest version from github and let me know if this is the intended functionality you had in mind? Thanks.