mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-23 07:20:32 -04:00
* Fixed a scaling issue in the epub reader, where images could scale when they shouldn't. * Removed some caching on library/ api and added more output for a foreign key constraint * Hooked in Restricted Profile stat collection * Added a new boolean on age restrictions to explicitly allow unknowns or not. Since unknown is the default state of metadata, if users are allowed access to Unknown, age restricted content could leak. * Fixed a bug where sometimes series cover generation could fail under conditions where only specials existed. * Fixed foreign constraint issue when cleaning up series not seen at end of scan loop * Removed an additional epub parse when scanning and handled merging differently * Code smell
25 lines
867 B
C#
25 lines
867 B
C#
using System.Collections.Generic;
|
|
using System.Text.Json.Serialization;
|
|
using API.Entities.Enums;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal;
|
|
|
|
namespace API.DTOs.Account;
|
|
|
|
public record UpdateUserDto
|
|
{
|
|
public int UserId { get; set; }
|
|
public string Username { get; set; }
|
|
/// List of Roles to assign to user. If admin not present, Pleb will be applied.
|
|
/// If admin present, all libraries will be granted access and will ignore those from DTO.
|
|
public IList<string> Roles { get; init; }
|
|
/// <summary>
|
|
/// A list of libraries to grant access to
|
|
/// </summary>
|
|
public IList<int> Libraries { get; init; }
|
|
/// <summary>
|
|
/// An Age Rating which will limit the account to seeing everything equal to or below said rating.
|
|
/// </summary>
|
|
public AgeRestrictionDto AgeRestriction { get; init; }
|
|
|
|
}
|