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

Forums / Developing with Sitefinity / Check to see if user has cms access?

Check to see if user has cms access?

3 posts, 0 answered
  1. Eric Wallace
    Eric Wallace avatar
    66 posts
    Registered:
    08 Oct 2009
    20 May 2010
    Link to this post
    What is the easiest way to check whether or not the current logged in user has cms access?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 May 2010
    Link to this post
    Hello Eric Wallace,

    You could use the code below to check whether or not the current use has CmsAccess.

    Telerik.Cms.Security.GlobalPermission permission =
                 new Telerik.Cms.Security.GlobalPermission(
                     Telerik.Cms.Security.GlobalRights.CmsAccess);
          if (permission.CheckDemand())
          {
      
          }
          else
          {
      
          }


    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Eric Wallace
    Eric Wallace avatar
    66 posts
    Registered:
    08 Oct 2009
    20 May 2010
    Link to this post
    Outstanding. Awesome support as usual, Ivan.

    Thanks,
    Eric
Register for webinar
3 posts, 0 answered