Jump to content

Different home page


norcenmarco
Go to solution Solved by norcenmarco,

Recommended Posts

Hi to all guys,

i'm realy in trouble and i hope in your help!!

So i'm a newbie and i'm currently usine jasperserver enterprise and i have multytennancy.

This is my problem: suppose that i have created 2 organization named A and B.

I would like that when entering with organization A i would like to show two more custom button in the maingraphic, instead when i enter with organization B i just want 1 custom button.

How can i achieve my goal?

I tried to create anoter page homeForNonDemo but it isn't working, so it would be great if someone could help me!!!

 

Thanks a lot!!

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

I've find a solution:

First create a new role on your organization and then create a user depending on that orgazationa and then assign to it the role created.

Create a copy of the page homeForNonDemo.jsp and rename it <what-you-want>

Then modify the home.jsp in this way:

 

<authz:authorize ifAllGranted="ROLE_DEMO">
    <jsp:include page="homeForDemo.jsp"/>
</authz:authorize>

<authz:authorize ifAllGranted="PROVA|Da_Re">
   <jsp:include page="<what-you-want>.jsp"/>
</authz:authorize>

<authz:authorize ifNotGranted="ROLE_DEMO">
    <authz:authorize ifNotGranted="PROVA|Da_Re">
      <jsp:include page="homeForNonDemo.jsp"/>
   </authz:authorize>
</authz:authorize>

 

Hope this could help!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...