How to enable attributes in the JQuerygrid based on the user role ?
Joined: Jul 18, 2008
I am doing a web application, in which my backend is a struts2 based java server and the frontend I am using JQuerygrid for populating the data from mysql database. All these are working fine. What I am searching for is, depending upon the user's role, the attributes in the <sjg:grid> should be enabled.
For eg., for an Administrator with role ADMIN, I need the user to be able to Add / Modify / Delete / View data for a master, whereas for an user with role GUEST, I need to provide only VIEW option for the master data.
I am using struts2 v2.2, JQuery v2.5, JSON v2.2. Can someone please advise, how I can get this. Please let me know if any more information is required.