mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-31 04:04:19 -04:00
* Have language from epubs populate metadata * series detail needs to reload the underlying volumes when scan event comes in, not just metadata. * Added Id to chapter detail modal (for debugging) * Implement IDisposable on applicable Unit Tests * Removed unused using statements * Fixed a bug where images would flash like crazy during a scan because the code to refresh the underlying image wasn't checking the entity type or Id. * When filtering rating, only apply the filter to your account. * Removed Disposable on tests
31 lines
996 B
C#
31 lines
996 B
C#
using System.Collections.Immutable;
|
|
|
|
namespace API.Constants
|
|
{
|
|
/// <summary>
|
|
/// Role-based Security
|
|
/// </summary>
|
|
public static class PolicyConstants
|
|
{
|
|
/// <summary>
|
|
/// Admin User. Has all privileges
|
|
/// </summary>
|
|
public const string AdminRole = "Admin";
|
|
/// <summary>
|
|
/// Non-Admin User. Must be granted privileges by an Admin.
|
|
/// </summary>
|
|
public const string PlebRole = "Pleb";
|
|
/// <summary>
|
|
/// Used to give a user ability to download files from the server
|
|
/// </summary>
|
|
public const string DownloadRole = "Download";
|
|
/// <summary>
|
|
/// Used to give a user ability to change their own password
|
|
/// </summary>
|
|
public const string ChangePasswordRole = "Change Password";
|
|
|
|
public static readonly ImmutableArray<string> ValidRoles =
|
|
ImmutableArray.Create(AdminRole, PlebRole, DownloadRole, ChangePasswordRole);
|
|
}
|
|
}
|