Sitefinity and security based generic content areas

by Jesse 10. July 2008 03:05

as I discovered, sitefinity doesn't support public side permissions out of the box.  It does on the admin side, just not the public facing side.  The particular project I'm on now requires this to a rather high complexity level.  Ok, time to bust out the goods.

I hit their developer manual and find something that looks promising for a couple reasons.  It uses similiar methods I tried thinking it was out of the box.  What I want to interject is this tiny piece of logic...

if (!Roles.IsUserInRole("SomeRole")
{
     // show some stuff!
}
else
{
     // show me nothing!
}

Nothing fancy, nothing over the top just straight and to the point.  That -should- give me what I need ...now, how to make it happen is another task.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About the author

Like the description says, at my core, I'm a scientist and engineer.  I came from humble beginnings on a 486DX2 Packard Hell playing doom2 on IPX to in a small time retail shop and got into hardware (ISO layers FTW!) and it was all downhill from there.  I'm infinitely curious about almost everything and always wanting to know.

Some of the stuff I'm currently into/researching...

Sitefinity

Ninject

Subsonic

Java

Currently working on ...
i did the hundred 
and some extra stuff

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's, their brother nor their dog's view in anyway.  At all.  Ever.

© Copyright 2007-2008