5
muszę wdrożyć klasę RoleAuthorize z AuthorizeAttributeklienta AuthorizeAttribute Role nieruchomość jest pusta
public sealed class RoleAuthorize : AuthorizeAttribute
{
protected override bool AuthorizeCore(HttpContextBase httpContext)
{
var roles = Roles;
return false;
}
}
Ale kiedy filtr wystąpił Role właściwość ma wartość null. Dzięki.
Wiem, że pochodzi z _long_ czasu temu, ale czy kiedykolwiek to wymyśliłeś? Mam ten sam problem. – Tom