hi Shraddha,
you need to add module roles to userroles.
You can do so by opening Project → Security → User roles → add the desired modules roles.
Also see: https://docs.mendix.com/howto/security/create-a-secure-app#1-introduction
see the picture