More in this section

Forums / Developing with Sitefinity / Programmatically adding permissions to role for Forums

Programmatically adding permissions to role for Forums

2 posts, 0 answered
  1. Scott
    Scott avatar
    1 posts
    10 Jul 2012
    12 Jul 2012
    Link to this post
    I am trying to programmatically create roles and assign forum permissions, following the steps found here: 

    However, when it comes to the GrantActions call, there is no Forum set in SecurityConstants.  There is a ForumsPermissions class in the Telerik.Sitefinity.Forums namespace, but it is marked internal and thus not available to access.  Is there another method for adding permissions to roles for Forums?
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    18 Sep 2017
    17 Jul 2012
    Link to this post

    There is no other way to add permission to forum post programmatically. The internal class ForumsPermissions is the access point to those permissions. I have logged a feature request to allow programmatic creation of permissions for forums.

    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered