1 Reply Latest reply on Jul 25, 2011 7:16 AM by vata2999

    authorization on seam security

    013

      hi all,
      how can i check the authorization of a person for editing a article when he is not it's creator in sample application by seam 3 security, for example by authorizer method or etc...


      best regards

        • 1. Re: authorization on seam security
          vata2999

          Hi,


          i think it has nothing to do with seam




          Add to your Article Entity


          private User owner;
          //setter , getter
          public boolean isOwner(User user) {
                    return getOwner() != null && getOwner().equals(user);
               }



          yourpage.xhtml




          <h:commandButton render="#{article.isowner(user)}" value="Edit" />