/// <summary>
 /// Construct a <see cref="TgsAuthorizeAttribute"/> for <see cref="ConfigurationRights"/>
 /// </summary>
 /// <param name="requiredRights">The rights required</param>
 public TgsAuthorizeAttribute(ConfigurationRights requiredRights)
 {
     Roles      = RightsHelper.RoleNames(requiredRights);
     RightsType = Api.Rights.RightsType.Configuration;
 }
Exemple #2
0
 /// <summary>
 /// Construct a <see cref="TgsAuthorizeAttribute"/> for <see cref="ConfigurationRights"/>
 /// </summary>
 /// <param name="requiredRights">The rights required</param>
 public TgsAuthorizeAttribute(ConfigurationRights requiredRights)
 {
     Roles = RightsHelper.RoleNames(requiredRights);
 }