Projekt

Obecné

Profil

« Předchozí | Další » 

Revize a35cb648

Přidáno uživatelem Vojtěch Bartička před asi 2 roky(ů)

Added comments to backend

Zobrazit rozdíly:

Backend/Backend/Authentication/AuthorizationAttribute.cs
6 6

  
7 7
namespace RestAPI.Authentication;
8 8

  
9
/// <summary>
10
/// Authorization attribute for endpoints and controllers
11
/// By default minimum role is ANNOTATOR
12
/// Access is granted to any role with same or higher privilege than the specified one (or default, if none is specified)
13
/// </summary>
9 14
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
10 15
public class AuthorizeAttribute : Attribute, IAuthorizationFilter
11 16
{

Také k dispozici: Unified diff