-
1. Re: Stop @Page from showing
edewit Jun 17, 2013 2:10 AM (in response to jdestef)Hi John,
You could also use the secruty framework instead of the Page roles. The idea of the scurity framework is to add annotations on html elements and if the user doesn't have the appropriate role(s) these elements will be hidden from the view. So the link to the page that you don't want the user to see will be hidden for instance. Of course this is not enought to ensure that the user doesn't try to go to a page that he is not allowed to see, but you already have secured the server part so eventhough the user could call the page it would be a page without any data.
Cheers,
Erik Jan
-
2. Re: Stop @Page from showing
ben.dol Dec 18, 2016 9:11 PM (in response to jdestef)How has this not been answered yet? Seems like a really important feature that I too will need.
-
3. Re: Stop @Page from showing
mbarkley Dec 19, 2016 11:07 AM (in response to ben.dol)Hi Ben,
We don't have a general concept of a GateKeeper, but you can use Errai Security to restrict access to pages, causing redirection to a SecurityErrorPage if the user is not authorized, or a LoginPage if they are unauthenticated. You can read about it here.
Cheers.
-
4. Re: Stop @Page from showing
ben.dol Dec 19, 2016 3:21 PM (in response to mbarkley)How would this work for specific business logic that works off another form of information other than a users role? I would have to assign roles for all these requirements? I would end up with a lot of roles that seems like really bad practise to have 10-100 roles to do this.