def _accessible_libraries_list(user):
 return [lib for lib in modulestore().get_libraries() if has_studio_read_access(user, lib.location.library_key)]

def _accessible_libraries_list ( user ) : return [ lib for lib in modulestore ( ) . get_libraries ( ) if has_studio_read_access ( user , lib . location . library_key ) ]
list all libraries available to the logged in user by iterating through all libraries .