fix hasAccess on modules