Fórum

Dynamic menu popluation based on custom roles

thumbnail
Vinod Kumar Nair, modificado 11 Anos atrás.

Dynamic menu popluation based on custom roles

Junior Member Postagens: 58 Data de Entrada: 13/07/12 Postagens Recentes
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,
thumbnail
Anil Sunkari, modificado 11 Anos atrás.

RE: Dynamic menu popluation based on custom roles

Expert Postagens: 427 Data de Entrada: 12/08/09 Postagens Recentes
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