Programmatically adding permissions to role for Forums

Posted by Community Admin on 04-Aug-2018 13:50

Programmatically adding permissions to role for Forums

All Replies

Posted by Community Admin on 12-Jul-2012 00:00

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?

Posted by Community Admin on 17-Jul-2012 00:00

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

This thread is closed