Search code examples
ektron

Is there any way to assign a custom permission to a content in ektron?


Am working in ektron 9.0. I read about the custom permission from below article Information about Custom Roles for your Developer

In that i found two methods GetRolePermissionSystem and GetRolePermissionFolder mentioned.Is anyone know which ektron api these methods available.

Also i would like to know that, is there any way to associate a custom permission with a content or a folder?


Solution

  • This is an older API and not a Framework API call. This is an example of using the API:

    Ektron.Cms.CommonApi comApi = new Ektron.Cms.CommonApi();
      if (comApi.GetRolePermissionSystem("MyCustomRoleAdmin", comApi.UserId))
    

    That example is for a system wide custom role that is not specific to a folder. While the article you referenced seems to imply that GetRolePermissionFolder would work for a folder, I have never tried it.