Function sensei_can_user_view_lesson
Template function to determine if the current user can access the current lesson content being viewed.
This function checks in the folowing order - if the current user has all access based on their permissions - If the access permission setting is enabled for this site, if not the user has accces - if the lesson has a pre-requisite and if the user has completed that - If it is a preview the user has access as well
string |
$lesson_id = '' |
|
|
$user_id = '' |
boolean
|
bool |