構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Alex Belt
Dynamic Navigation
2013/03/06 12:35
答え

Alex Belt

ランク: Junior Member

投稿: 49

参加年月日: 2012/10/09

最近の投稿

One improvement I'd really like to see - the ability to hide a navigation item if a user has a certain role, and the ability of that role to override other roles which allow them to see the navigation item.

Alternatively, if that is too hard to implement, then the ability to associate a rule/formula/code with the navigation item, such that the way it is evaluated determines whether the user can see the link or not, and the admin can choose whether to override the permissions that allow the user to see the link. In order to avoid a lot of extra work, the rule/formula/code would all be in Java, the code would be written into a generated class/method, and the code run using Reflection.

Thanks,
Alex
David H Nebinger
RE: Dynamic Navigation
2013/03/06 13:45
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11249

参加年月日: 2006/09/01

最近の投稿

I can (and do) already do most of this OOTB.

Define a new role for the new 'page'. Give the role to only those users that should be able to see the page. Adjust the page permissions so only that role can view the page. Done. And, btw, all accomplished by the admin using current tools, no coding and/or reflection resolution to deal with.

Using roles/permissions in this way, you can get very fine-grained control over who can see what.

The current permissions system is a really effective model and matches those of most modern ACL systems. ACL does not allow one role to hide the impact of other role(s), especially since this sort of thing would be difficult to administer.