jQuery in Action, 3rd edition
The moose likes Struts and the fly likes Restrict user to access action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Restrict user to access action " Watch "Restrict user to access action " New topic

Restrict user to access action

N Kumar

Joined: Jan 09, 2007
Posts: 2
Hi All,

I have a problem,I am developing an application, where multiple groups(Administrator,supervisor,inspector...) are there.And they have some restricted access only.
Now the problem is if the user login from supervisor user id and if he has the url for administrator then he can access the page.
I am checking the user in session the problem is the supervisor has login with userid and password and after that he is putting the url where he donot have access.
Can anybody suggest how to control it?
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32330

Every action should be responsible for it's own security check that the user has the correct role. Then typing in the URL isn't enough to access a page.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
It is sorta covered in the JavaRanch Style Guide.
subject: Restrict user to access action
It's not a secret anymore!