Implementing a Suspension or Penalty System for Users in ASP.NET MVC
Posted
by Maxim Z.
on Stack Overflow
See other posts from Stack Overflow
or by Maxim Z.
Published on 2010-04-17T05:00:03Z
Indexed on
2010/04/17
5:03 UTC
Read the original article
Hit count: 340
I'm writing a site in ASP.NET MVC that will have user accounts. As the site will be oriented towards discussion, I think I need a system for admins to be able to moderate users, just like we have here, on Stack Overflow. I'd like to be able to put a user into a "suspension", so that they are able to log in to the site (at which point they are greeted with a message, such as, "Your account has been suspended until [DATE]"), but are unable to do the functions that users they would normally be able to do.
What's the best way of implementing this?
I was thinking of creating a "Suspended" role, but the thing is, I have a few different roles for normal users themselves, with different privileges.
Have you ever designed a feature like this before? How should I do it? Thanks in advance.
© Stack Overflow or respective owner