How to check module permissions in code

Posted by Community Admin on 03-Aug-2018 16:46

How to check module permissions in code

All Replies

Posted by Community Admin on 12-Sep-2012 00:00
Hi all

I need a little help :). Sitefinity allows to create Dynamic modules and Content types. In Administration->Permission these modules appear in the left side and then Admin can decide who can modify, create and ect.  My question is how can I check does current user has create permissions for these module, but I want to do it in Code. I saw that if my module is called Car and for example Content type has name Lada in security config there is permissions for Car-Lada. But if i have many contents it is not relevant to check each when the permission is specified for Module Car. Also http://www.sitefinity.com/documentation/documentationarticles/developers-guide/deep-dive/security/permissions/checking-and-demanding-permissions here found a way but it not works for DynamicManager. Hope that You will help me :)
This thread is closed