diff options
| author | David <daullmer@gmail.com> | 2020-06-19 14:29:32 +0200 |
|---|---|---|
| committer | David <daullmer@gmail.com> | 2020-06-19 14:29:32 +0200 |
| commit | b51b9653ac9ff015d34233099bdc744fa153f8ee (patch) | |
| tree | 67d8aaa05a136313717c2fb5f454a197a3f480c7 /Jellyfin.Api/Controllers/SystemController.cs | |
| parent | d63c0e42287d4a62e9f07c670edc7dd4e4fee20e (diff) | |
Add missing authorization policies
Diffstat (limited to 'Jellyfin.Api/Controllers/SystemController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/SystemController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/SystemController.cs b/Jellyfin.Api/Controllers/SystemController.cs index cab6f308f..f4dae40ef 100644 --- a/Jellyfin.Api/Controllers/SystemController.cs +++ b/Jellyfin.Api/Controllers/SystemController.cs @@ -60,7 +60,7 @@ namespace Jellyfin.Api.Controllers /// <response code="200">Information retrieved.</response> /// <returns>A <see cref="SystemInfo"/> with info about the system.</returns> [HttpGet("Info")] - // TODO: Authorize EscapeParentalControl + [Authorize(Policy = Policies.IgnoreSchedule)] [Authorize(Policy = Policies.FirstTimeSetupOrElevated)] [ProducesResponseType(StatusCodes.Status200OK)] public async Task<ActionResult<SystemInfo>> GetSystemInfo() @@ -99,7 +99,7 @@ namespace Jellyfin.Api.Controllers /// <response code="204">Server restarted.</response> /// <returns>No content. Server restarted.</returns> [HttpPost("Restart")] - // TODO: Authorize AllowLocal = true + [Authorize(Policy = Policies.LocalAccessOnly)] [Authorize(Policy = Policies.RequiresElevation)] [ProducesResponseType(StatusCodes.Status204NoContent)] public ActionResult RestartApplication() |
