掲示板

Dynamic Navigation

11年前 に Alex Belt によって更新されました。

Dynamic Navigation

Junior Member 投稿: 49 参加年月日: 12/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
thumbnail
11年前 に David H Nebinger によって更新されました。

RE: Dynamic Navigation

Liferay Legend 投稿: 14914 参加年月日: 06/09/02 最新の投稿
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.