/// <summary> /// Construct a <see cref="TgsAuthorizeAttribute"/> for <see cref="InstanceUserRights"/> /// </summary> /// <param name="requiredRights">The rights required</param> public TgsAuthorizeAttribute(InstanceUserRights requiredRights) { Roles = RightsHelper.RoleNames(requiredRights); }
/// <summary> /// Construct a <see cref="TgsAuthorizeAttribute"/> for <see cref="InstanceUserRights"/> /// </summary> /// <param name="requiredRights">The rights required</param> public TgsAuthorizeAttribute(InstanceUserRights requiredRights) { Roles = RightsHelper.RoleNames(requiredRights); RightsType = Api.Rights.RightsType.InstanceUser; }