logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
narsimhak  
#1 Posted : Tuesday, November 6, 2018 9:13:54 AM(UTC)
Rank: Administration
narsimhak
Groups: Registered, Administrators

Posts: 8
Location: Hyderabad

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" )

Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.