Please or Register to create posts and topics.

Control role level access to a custom application

If you add any custom application inside OfficeClip, and want to revoke access to few users then follow these steps

  1.  Create a role and add the users (non-administrators who you want to restrict the application ) to it,
  2.  Add the Custom Application in appmenus.xml
  3.  Within your custom application in the page_init() use the following code you control role level access
    1.  RoleDB.GetRolesByUserId(Utils.SessionSettings.GroupId, Utils.SessionSettings.UserId)
    2. If you get the restricted role id in the above table then throw an exception (saying "You are not authenticated to view this page" )