掲示板

Dynamic menu popluation based on custom roles

thumbnail
11年前 に Vinod Kumar Nair によって更新されました。

Dynamic menu popluation based on custom roles

Junior Member 投稿: 58 参加年月日: 12/07/13 最新の投稿
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
11年前 に Anil Sunkari によって更新されました。

RE: Dynamic menu popluation based on custom roles

Expert 投稿: 427 参加年月日: 09/08/12 最新の投稿
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