Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Vinod Kumar Nair
Dynamic menu popluation based on custom roles
February 8, 2013 11:04 PM
Answer

Vinod Kumar Nair

Rank: Junior Member

Posts: 59

Join Date: July 13, 2012

Recent Posts

Hi,

I want to write one uitilty which will be like access control. When a user logs into system, it will call this utility to check what all links are allowed and returns some flag. Based on this flag, I want to govern the visibility of links on portal. Can you just give some idea or logic, how it will be handled?
There are Role tables and Permission tables and I can put joins and prepare query out of it.

Thank you,
Anil Sunkari
RE: Dynamic menu popluation based on custom roles
February 9, 2013 1:01 AM
Answer

Anil Sunkari

Rank: Expert

Posts: 427

Join Date: August 11, 2009

Recent Posts

If i'm correct you are talking about expected thing should happen based on user and his roles assigned when he logs into system.If this is the case.

You have to manage the return of layouts(pages/links) .Do customize it and send the updated layouts based on role.Doing this can be possible with Hook/Ext plugin something relatively can do it by servicepreaction/login.pre.events.

Thanks,
Anil Sunkari