AuthorizationExtensions.ValidateLoggedIn method
namespace: Serenity assembly: Serenity.Net.Core
Checks if there is a currently logged user and throws a validation error with "NotLoggedIn" error code if not.
public static void ValidateLoggedIn(this IUserAccessor userAccessor, ITextLocalizer localizer)
See Also
- interface IUserAccessor
- interface ITextLocalizer
- class AuthorizationExtensions