add exception filter when user not connected default to needing authentication and apply anonymous to some actions add user in get requests add user relation in link, comment and vote signup and in are ok now!
12 lines
168 B
C#
12 lines
168 B
C#
using System;
|
|
|
|
namespace Website
|
|
{
|
|
public sealed class UserNotConnected : Exception
|
|
{
|
|
public UserNotConnected() : base("User not connected!")
|
|
{
|
|
|
|
}
|
|
}
|
|
} |