mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-13 11:02:18 -04:00
Validate Download Claim (#971)
* Partially complete, got some code to validate your Role. Needs to be applied to all methods and made a filter. * Cleaned up the code on the backend to validate each call. The reason the RequireDownloadRole doesn't work is that the user still has the claim in their token so the simple validation isn't working. We need explicit checks. * Don't allow users to download files if they have lost the claim but not refreshed token. * Don't allow users to download files if they have lost the claim but not refreshed token.
This commit is contained in:
@@ -103,17 +103,6 @@ namespace API.Data.Metadata
|
||||
info.Characters = Parser.Parser.CleanAuthor(info.Characters);
|
||||
info.Translator = Parser.Parser.CleanAuthor(info.Translator);
|
||||
info.CoverArtist = Parser.Parser.CleanAuthor(info.CoverArtist);
|
||||
|
||||
|
||||
// if (!string.IsNullOrEmpty(info.Web))
|
||||
// {
|
||||
// // ComicVine stores the Issue number in Number field and does not use Volume.
|
||||
// if (!info.Web.Contains("https://comicvine.gamespot.com/")) return;
|
||||
// if (info.Volume.Equals("1"))
|
||||
// {
|
||||
// info.Volume = Parser.Parser.DefaultVolume;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user