remove circular dependency between common and lms by passing in the pointer to has_access