+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / How to check module permissions in code

How to check module permissions in code

1 posts, 0 answered
  1. Diyan
    Diyan avatar
    3 posts
    Registered:
    23 Oct 2012
    12 Sep 2012
    Link to this post
    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 :)
1 posts, 0 answered