6 Replies Latest reply on Jan 13, 2009 6:31 PM by Petr Nejedly

    Usage of @Restrict on entity!?

    Patrick Grütter Newbie

      Hi all


      I'm having problems understanding the @Restrict annotation. If I restrict access to an entity with @Restrict(#{s:hasRole('ADMIN')}), then a user without the ADMIN role shouldn't be able to use any method of that entity, right??


      My problem is, that I even tried a @Restrict(#{false}) and my table in JSF is still able to display all records from that entity.


      Did I get something wrong!?