General developer forum

Check if user has access to activity by code

 
Picture of Mark Johnson
Re: Check if user has access to activity by code
Core developersParticularly helpful MoodlersPlugin developers

The cm_info class has a "uservisible" property, which should tell you whether or not the current user has access to that activity.

 
Average of ratings: -