-
1. Re: Module access
lcb Oct 18, 2004 7:10 AM (in response to pedrojosemartins)Do you have some security check in your Modules main method?
Somthing like this:if(secGetLevel("::").lesser(Level.READ)) { page.sendError("ACCESS DENIED"); }
-
2. Re: Module access
pedrojosemartins Oct 18, 2004 8:26 AM (in response to pedrojosemartins)This solution creates another problem. Including the code you gave me,
if(secGetLevel("::").lesser(Level.ACCESS_READ)) { page.sendError("ACCESS DENIED"); }
not Level.READ (i think it was a mistake from you, am i right?), and changing the xml file to<permission group="Users" pattern="::" level="READ"/>
when i log in as a user i cannot access the module! What's going on? -
3. Re: Module access
lcb Oct 18, 2004 8:58 AM (in response to pedrojosemartins)Yes your are rigth, Level.READ was a mistake, sorry. Level.ACCESS_READ is correct.
For me everything looks fine now, so i don't understand why you have no access.
Can you please check some settings.
First, is the user you logged in realy in the Users group?
Check the permisson settings of your module. Is the rule you defined in the jboss-service.xml the only one for this module? -
4. Re: Module access
pedrojosemartins Oct 18, 2004 12:48 PM (in response to pedrojosemartins)OK. I've sorted that out but rather than changing the xml file, which was fruitless, i used the permission module, changing the group to 'All'. One last issue (i hope): i can only display this module in the modules menu if logged in as admin. Why is this happening?
-
5. Re: Module access
lcb Oct 18, 2004 1:55 PM (in response to pedrojosemartins)Take a look at the permisson settings for menu block. You must add there a rule for you module.