1-888-365-2779
+1-888-365-2779
Try Now
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
    Registered:
    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: http://www.sitefinity.com/documentation/documentationarticles/developers-guide/deep-dive/security/permissions/granting-and-denying-permissions 

    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
    Registered:
    21 Aug 2017
    17 Jul 2012
    Link to this post
    Hi,

    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.

    Greetings,
    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