0
Hi Dheeraj,
Just Run a query of checking user's permission before delete like this...
I assuming that you have a mapping table of UserPermissions
- IF EXISTS(select count(*) from UserRoleMapping where UserID = 1 and RoleID = 1 and PermissionID = 1)
- BEGIN
-
- END
- ELSE
- BEGIN
-
- END
Thats it...