Hello,
I'm making a custom report and i'm listing all the activities from a course, but I should only print the activities that the user has access to. The course has groupings.
Is there a method for that? Thanks!
Hello,
I'm making a custom report and i'm listing all the activities from a course, but I should only print the activities that the user has access to. The course has groupings.
Is there a method for that? Thanks!
The cm_info class has a "uservisible" property, which should tell you whether or not the current user has access to that activity.
Hi,
I am using this property to check if the user has access, but even though at the completion report (report/progress/index.php) I see the activity is marked as completed by the user, the uservisible property of cm_info is NULL.
problem is solved using
rebuild_course_cache()
is there another solution? because it seems inefficient