Forums de discussion

How to give page permission based on User Location

thumbnail
Chethan Barike, modifié il y a 10 années.

How to give page permission based on User Location

Junior Member Publications: 29 Date d'inscription: 27/03/12 Publications récentes
Hi Liferay,

Is there any options to assign page permission based on user's location. (bit similar like Displaying site pages to mobile devices refer: here)

Note: Page permission should consider both user role as well as user location. That is (userRole AND userLocation) condition.

For knowing the location for the user, i'll do separate service call when user logs in.
Finally how to configure access to particular page, based on location and role.

That is for example:

I have 2 users with same role (Say Sales Manager):
userA from region A.
userB from region B.

Now I'll create 2 Liferay pages Lets say:
Page1 and Page2.

And,
Page1, Page2 view permission should be assigned to Sales Manager Role.

Finally I need to achieve.
userA can access Page1, Page2
userB can access only Page1.

After some months of time i'll enable Page2 for userB.

Please help me out to achieve this in Liferay 6.1 GA2.

BR,
Chethan
thumbnail
Jk Tipan, modifié il y a 10 années.

RE: How to give page permission based on User Location

New Member Envoyer: 1 Date d'inscription: 04/09/13 Publications récentes
First you must create users, one like admin and other like guest....

To enter at pages for the users(a,b)....select menu manage and choose the page....this will be page1... in the lower part there are 3 buttons...select permissions...now select the user admin and mark view..and save thhis process repeat for page 2...

Now you must select again page1 and permission..now select the guest user...click view and save


JKTipan
thumbnail
Vilmos Papp, modifié il y a 10 années.

RE: How to give page permission based on User Location

Liferay Master Publications: 529 Date d'inscription: 21/10/10 Publications récentes
How about using organizations? That should be a good solution for you. Read this wiki page: https://www.liferay.com/community/wiki/-/wiki/Main/Working+with+Organizations+and+Locations