def _has_access_xmodule(user, action, xmodule, course_key):
 return has_access(user, action, xmodule.descriptor, course_key)

def _has_access_xmodule ( user , action , xmodule , course_key ) : return has_access ( user , action , xmodule . descriptor , course_key )
check if user has access to this xmodule .