Announcement Announcement Module
Collapse
No announcement yet.
Logged in taglib? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logged in taglib?

    Is there a taglib that will render content on whether a user is logged in or not? I can write one up, but really don't want to re-invent the wheel.

  • #2
    Take a look at the Acegi example application.

    Comment


    • #3
      Originally posted by jhazen
      Take a look at the Acegi example application.
      Is there a specific tag I should see by looking at the example application?

      Comment


      • #4
        If you have a fixed and small list of roles I guess you could use
        Code:
        <authz&#58;authorize ifAnyGranted="ROLE_X,ROLE_Y,ROLE_Z">things_to_do_if_user_has_any_of_the_roles_granted</authz&#58;authorize>
        there are other attributes like ifAllGranted

        Comment


        • #5
          Could AuthenticationTag be used? It skips the tag body if the user is not logged in.

          Comment

          Working...
          X