Issue Details (XML | Word | Printable)

Key: SM-16
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matt Raible
Reporter: Matt Raible
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts Menu

VelocityMenuDisplayer and permissions

Created: 08/May/06 05:47 PM   Updated: 10/May/06 01:57 AM   Resolved: 10/May/06 01:57 AM
Component/s: Displayers
Affects Version/s: 2.3
Fix Version/s: 2.4


 Description  « Hide
Moved from sf.net http://sourceforge.net/tracker/index.php?func=detail&aid=1356309&group_id=48726&atid=453974:

If menu item can be invisible at one time it is remove
from list of components and would never be avalable.

Code from VelocityMenuDisplayer

MenuComponent[] components = menu.getMenuComponents();

for (int i = 0; i < components.length; i++) {
if (isAllowed(components[i])) {
componentsAllowed.add(components[i]);
}
}

menu.getComponents().clear();
menu.getComponents().addAll(componentsAllowed);

Onse this done not Allowed Items will disapper forever.

Followups:

Date: 2005-11-16 09:51
Sender: y-hosaka
Logged In: YES
user_id=1379015

I wrote a patch for using VelocityMenuDisplayer and
PermissionsAdapter.(cf.: Patches[1358227])
Though, I don't know whether my patch can fix your problem.


Matt Raible made changes - 10/May/06 01:57 AM
Field Original Value New Value
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]