PDA

View Full Version : control access - how to ?



muncher
2 Sep 2010, 3:15 PM
Currently, the grid has update and delete icons. I would want those icons be not displayed for users that don't have those privileges. How do I do that ? Any thoughts, ideas ?

I can definitely control access to javascript files but not such small elements. Obviously, the actual actions like deleting or updating a resource are taken care of and well implemented on the server side, but just that icon display is still a concern.

madkris
2 Sep 2010, 4:35 PM
Obviously, the actual actions like deleting or updating a resource are taken care of and well implemented on the server side, but just that icon display is still a concern.Simplest approach would be to do some checking before proceeding with "the actual actions".

Or you could, hide/show the icons depending on some data(privileges) passed before the grid is displayed.