visibility of a page on the site

Can you help me on how I can restrict the visibility of my page if I put this in but the other role I have still sees it?

not ( isusermemberofallgroups(
user: loggedInUser(),
groups: a!groupsByName("RDCR Ejecutivo")

  )
)

  Discussion posts and replies are publicly visible