Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.3
-
Fix Version/s: 2.5
-
Component/s: Displayers
-
Labels:None
Description
Moved from SourceForge http://sourceforge.net/tracker/index.php?func=detail&aid=1105443&group_id=48726&atid=453974:
When using DropDown menu
(net.sf.navigator.displayer.DropDownMenuDisplayer) and
security, if the user is not allowed to see an item a
"null" is printed on the browser.
I found the the root problem was caused by a property
not being defined in the file
net.sf.navigator.displayer.DisplayerStrings.properties.
I fixed it by adding the following line to the
DisplayerStrings.properties file
dd.link.restricted=<label
style\="cursor\:crosshair;font-family\:verdana;font-size\:10px"
onmouseover\="this.style.color\='red'"
onmouseout\="this.style.color\='black'"
onclick\="return false">
</label>
Best Regards,
Andres Bernasconi - Sotretus
Download attachment at http://sourceforge.net/tracker/download.php?group_id=48726&atid=453974&file_id=116406&aid=1105443
I am attaching a patch to fix the issue described above.
The patch also includes logic to allow a user to provide a new showAuthItem value in the menu-config.xml. This value works with the roles value, and if a user is not authorized to view the menu item and the showAuthItem value is set to false, then the menu item is hidden. The showAuthItem defaults to true as a default and will display the menu or menu item.
Fix has also been included to better display a non-authorized menu item.