Forum breadcrumbs - You are here:OfficeClip ForumsGeneral Discussion: Developer ResourcesCustom CodingControl role level access to a cu …
Control role level access to a custom application
Narsimha Rao@narsimha
22 Posts
#1 · November 15, 2018, 9:50 am
Quote from Narsimha Rao on November 15, 2018, 9:50 amIf you add any custom application inside OfficeClip, and want to revoke access to few users then follow these steps
- Create a role and add the users (non-administrators who you want to restrict the application ) to it,
- Add the Custom Application in appmenus.xml
- Within your custom application in the page_init() use the following code you control role level access
- RoleDB.GetRolesByUserId(Utils.SessionSettings.GroupId, Utils.SessionSettings.UserId)
- If you get the restricted role id in the above table then throw an exception (saying "You are not authenticated to view this page" )
If you add any custom application inside OfficeClip, and want to revoke access to few users then follow these steps
- Create a role and add the users (non-administrators who you want to restrict the application ) to it,
- Add the Custom Application in appmenus.xml
- Within your custom application in the page_init() use the following code you control role level access
- RoleDB.GetRolesByUserId(Utils.SessionSettings.GroupId, Utils.SessionSettings.UserId)
- If you get the restricted role id in the above table then throw an exception (saying "You are not authenticated to view this page" )
Click for thumbs down.0Click for thumbs up.0
