CSLA.NET
6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Blazor/HasPermissionAttribute.cs
Go to the documentation of this file.
1
//-----------------------------------------------------------------------
2
// <copyright file="HasPermissionAttribute.cs" company="Marimer LLC">
3
// Copyright (c) Marimer LLC. All rights reserved.
4
// Website: https://cslanet.com
5
// </copyright>
6
// <summary>Authorizes user if they have permission</summary>
7
//-----------------------------------------------------------------------
8
using
System;
9
using
Microsoft
.AspNetCore.Authorization;
10
11
namespace
Csla.Blazor
12
{
16
public
class
HasPermissionAttribute
: AuthorizeAttribute
17
{
23
public
HasPermissionAttribute
(Rules.AuthorizationActions action, Type objectType)
24
: base(CslaPolicy.GetPolicy(action, objectType))
25
{ }
26
}
27
}
Csla.Blazor.HasPermissionAttribute
Authorizes user if they have permission.
Definition:
Csla.Blazor/HasPermissionAttribute.cs:17
Csla.Blazor.HasPermissionAttribute.HasPermissionAttribute
HasPermissionAttribute(Rules.AuthorizationActions action, Type objectType)
Creates instance of type
Definition:
Csla.Blazor/HasPermissionAttribute.cs:23
Csla.Blazor
Definition:
ApplicationContextTests.cs:12
Microsoft
Definition:
ServiceCollectionExtensions.cs:17
Generated by
1.9.2