General developer forum

Bulk-check availability of activities for users?

 
Picture of Kaba Leuner
Bulk-check availability of activities for users?
 
Hey hey,

is there a way to check for multiple users (e.g. a list of user ids) if they can access a certain activity  (e.g. if they did complete an other activity which is an access restriction for that particular activity)?? I only have got user ids and activity ids.

I've tried this: https://docs.moodle.org/dev/Availability_API#Check_if_the_current_user_can_access_an_activity even with an id as optional parameter  but I didn't have luck with that.

Can somebody help?

Thanks
 
Average of ratings: -