diff --git a/src/Ombi/Controllers/V1/SettingsController.cs b/src/Ombi/Controllers/V1/SettingsController.cs
index ad714780b..a23d56124 100644
--- a/src/Ombi/Controllers/V1/SettingsController.cs
+++ b/src/Ombi/Controllers/V1/SettingsController.cs
@@ -40,7 +40,6 @@ namespace Ombi.Controllers.V1
///
/// The Settings Controller
///
- [Admin]
[ApiV1]
[Produces("application/json")]
[ApiController]
@@ -78,6 +77,7 @@ namespace Ombi.Controllers.V1
/// Gets the Ombi settings.
///
///
+ [Admin]
[HttpGet("ombi")]
public async Task OmbiSettings()
{
@@ -110,6 +110,7 @@ namespace Ombi.Controllers.V1
///
/// The ombi.
///
+ [Admin]
[HttpPost("ombi")]
public async Task OmbiSettings([FromBody]OmbiSettings ombi)
{
@@ -145,6 +146,7 @@ namespace Ombi.Controllers.V1
return model;
}
+ [Admin]
[HttpPost("ombi/resetApi")]
public async Task ResetApiKey()
{
@@ -159,6 +161,7 @@ namespace Ombi.Controllers.V1
/// Gets the Plex Settings.
///
///
+ [Admin]
[HttpGet("plex")]
public async Task PlexSettings()
{
@@ -185,6 +188,7 @@ namespace Ombi.Controllers.V1
///
/// The plex.
///
+ [Admin]
[HttpPost("plex")]
public async Task PlexSettings([FromBody]PlexSettings plex)
{
@@ -207,6 +211,7 @@ namespace Ombi.Controllers.V1
/// Gets the Emby Settings.
///
///
+ [Admin]
[HttpGet("emby")]
public async Task EmbySettings()
{
@@ -218,6 +223,7 @@ namespace Ombi.Controllers.V1
///
/// The emby.
///
+ [Admin]
[HttpPost("emby")]
public async Task EmbySettings([FromBody]EmbySettings emby)
{
@@ -243,6 +249,7 @@ namespace Ombi.Controllers.V1
/// Gets the Jellyfin Settings.
///
///
+ [Admin]
[HttpGet("jellyfin")]
public async Task JellyfinSettings()
{
@@ -254,6 +261,7 @@ namespace Ombi.Controllers.V1
///
/// The jellyfin.
///
+ [Admin]
[HttpPost("jellyfin")]
public async Task JellyfinSettings([FromBody]JellyfinSettings jellyfin)
{
@@ -291,6 +299,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
///
+ [Admin]
[HttpPost("landingpage")]
public async Task LandingPageSettings([FromBody]LandingPageSettings settings)
{
@@ -326,6 +335,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
///
+ [Admin]
[HttpPost("customization")]
public async Task CustomizationSettings([FromBody]CustomizationSettings settings)
{
@@ -344,6 +354,7 @@ namespace Ombi.Controllers.V1
/// Get's the preset themes available
///
///
+ [Admin]
[HttpGet("themes")]
public async Task> GetThemes()
{
@@ -389,6 +400,7 @@ namespace Ombi.Controllers.V1
/// The settings.
///
[HttpPost("sonarr")]
+ [Admin]
public async Task SonarrSettings([FromBody]SonarrSettings settings)
{
var result = await Save(settings);
@@ -418,6 +430,7 @@ namespace Ombi.Controllers.V1
/// Gets the Lidarr Settings.
///
///
+ [Admin]
[HttpGet("lidarr")]
public async Task LidarrSettings()
{
@@ -441,6 +454,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
///
+ [Admin]
[HttpPost("lidarr")]
public async Task LidarrSettings([FromBody]LidarrSettings settings)
{
@@ -457,6 +471,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
///
+ [Admin]
[HttpPost("authentication")]
public async Task AuthenticationsSettings([FromBody]AuthenticationSettings settings)
{
@@ -479,6 +494,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
///
+ [Admin]
[HttpPost("radarr")]
public async Task RadarrSettings([FromBody]RadarrCombinedModel settings)
{
@@ -500,6 +516,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
///
+ [Admin]
[HttpPost("Update")]
public async Task UpdateSettings([FromBody]UpdateSettings settings)
{
@@ -510,6 +527,7 @@ namespace Ombi.Controllers.V1
/// Gets the UserManagement Settings.
///
///
+ [Admin]
[HttpGet("UserManagement")]
public async Task UserManagementSettings()
{
@@ -521,6 +539,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
///
+ [Admin]
[HttpPost("UserManagement")]
public async Task UserManagementSettings([FromBody]UserManagementSettings settings)
{
@@ -531,6 +550,7 @@ namespace Ombi.Controllers.V1
/// Gets the Update Settings.
///
///
+ [Admin]
[HttpGet("Update")]
public async Task UpdateSettings()
{
@@ -543,6 +563,7 @@ namespace Ombi.Controllers.V1
/// Gets the CouchPotatoSettings Settings.
///
///
+ [Admin]
[HttpGet("CouchPotato")]
public async Task CouchPotatoSettings()
{
@@ -554,6 +575,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
///
+ [Admin]
[HttpPost("CouchPotato")]
public async Task CouchPotatoSettings([FromBody]CouchPotatoSettings settings)
{
@@ -564,6 +586,7 @@ namespace Ombi.Controllers.V1
/// Gets the DogNzbSettings Settings.
///
///
+ [Admin]
[HttpGet("DogNzb")]
public async Task DogNzbSettings()
{
@@ -575,6 +598,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
///
+ [Admin]
[HttpPost("DogNzb")]
public async Task DogNzbSettings([FromBody]DogNzbSettings settings)
{
@@ -586,6 +610,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
///
+ [Admin]
[HttpPost("SickRage")]
public async Task SickRageSettings([FromBody]SickRageSettings settings)
{
@@ -596,6 +621,7 @@ namespace Ombi.Controllers.V1
/// Gets the SickRage Settings.
///
///
+ [Admin]
[HttpGet("SickRage")]
public async Task SickRageSettings()
{
@@ -606,6 +632,7 @@ namespace Ombi.Controllers.V1
/// Gets the JobSettings Settings.
///
///
+ [Admin]
[HttpGet("jobs")]
public async Task JobSettings()
{
@@ -638,6 +665,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
///
+ [Admin]
[HttpPost("jobs")]
public async Task JobSettings([FromBody]JobSettings settings)
{
@@ -681,6 +709,7 @@ namespace Ombi.Controllers.V1
}
[HttpPost("testcron")]
+ [Admin]
public CronTestModel TestCron([FromBody] CronViewModelBody body)
{
var model = new CronTestModel();
@@ -714,6 +743,7 @@ namespace Ombi.Controllers.V1
/// The settings.
///
[HttpPost("Issues")]
+ [Admin]
public async Task IssueSettings([FromBody]IssueSettings settings)
{
return await Save(settings);
@@ -744,6 +774,7 @@ namespace Ombi.Controllers.V1
/// The settings.
///
[HttpPost("vote")]
+ [Admin]
public async Task VoteSettings([FromBody]VoteSettings settings)
{
return await Save(settings);
@@ -754,6 +785,7 @@ namespace Ombi.Controllers.V1
///
///
[HttpGet("vote")]
+ [Admin]
public async Task VoteSettings()
{
return await Get();
@@ -772,6 +804,7 @@ namespace Ombi.Controllers.V1
///
/// The settings.
[HttpPost("themoviedb")]
+ [Admin]
public async Task TheMovieDbSettings([FromBody]TheMovieDbSettings settings)
{
return await Save(settings);
@@ -780,6 +813,7 @@ namespace Ombi.Controllers.V1
///
/// Get The Movie DB settings.
///
+ [Admin]
[HttpGet("themoviedb")]
public async Task TheMovieDbSettings()
{
@@ -791,6 +825,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/email")]
public async Task EmailNotificationSettings([FromBody] EmailNotificationsViewModel model)
{
@@ -808,6 +843,7 @@ namespace Ombi.Controllers.V1
/// Gets the Email Notification Settings.
///
///
+ [Admin]
[HttpGet("notifications/email")]
public async Task EmailNotificationSettings()
{
@@ -838,6 +874,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/discord")]
public async Task DiscordNotificationSettings([FromBody] DiscordNotificationsViewModel model)
{
@@ -855,6 +892,7 @@ namespace Ombi.Controllers.V1
/// Gets the discord Notification Settings.
///
///
+ [Admin]
[HttpGet("notifications/discord")]
public async Task DiscordNotificationSettings()
{
@@ -873,6 +911,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/telegram")]
public async Task TelegramNotificationSettings([FromBody] TelegramNotificationsViewModel model)
{
@@ -890,6 +929,7 @@ namespace Ombi.Controllers.V1
/// Gets the telegram Notification Settings.
///
///
+ [Admin]
[HttpGet("notifications/telegram")]
public async Task TelegramNotificationSettings()
{
@@ -907,6 +947,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/pushbullet")]
public async Task PushbulletNotificationSettings([FromBody] PushbulletNotificationViewModel model)
{
@@ -924,6 +965,7 @@ namespace Ombi.Controllers.V1
/// Gets the pushbullet Notification Settings.
///
///
+ [Admin]
[HttpGet("notifications/pushbullet")]
public async Task PushbulletNotificationSettings()
{
@@ -941,6 +983,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/pushover")]
public async Task PushoverNotificationSettings([FromBody] PushoverNotificationViewModel model)
{
@@ -958,6 +1001,7 @@ namespace Ombi.Controllers.V1
/// Gets the pushover Notification Settings.
///
///
+ [Admin]
[HttpGet("notifications/pushover")]
public async Task PushoverNotificationSettings()
{
@@ -976,6 +1020,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/slack")]
public async Task SlacktNotificationSettings([FromBody] SlackNotificationsViewModel model)
{
@@ -993,6 +1038,7 @@ namespace Ombi.Controllers.V1
/// Gets the slack Notification Settings.
///
///
+ [Admin]
[HttpGet("notifications/slack")]
public async Task SlackNotificationSettings()
{
@@ -1010,6 +1056,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/mattermost")]
public async Task MattermostNotificationSettings([FromBody] MattermostNotificationsViewModel model)
{
@@ -1027,6 +1074,7 @@ namespace Ombi.Controllers.V1
/// Gets the Mattermost Notification Settings.
///
///
+ [Admin]
[HttpGet("notifications/mattermost")]
public async Task MattermostNotificationSettings()
{
@@ -1043,6 +1091,7 @@ namespace Ombi.Controllers.V1
/// Gets the Twilio Notification Settings.
///
///
+ [Admin]
[HttpGet("notifications/twilio")]
public async Task TwilioNotificationSettings()
{
@@ -1064,6 +1113,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/twilio")]
public async Task TwilioNotificationSettings([FromBody] TwilioSettingsViewModel model)
{
@@ -1082,6 +1132,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/mobile")]
public async Task MobileNotificationSettings([FromBody] MobileNotificationsViewModel model)
{
@@ -1099,6 +1150,7 @@ namespace Ombi.Controllers.V1
/// Gets the Mobile Notification Settings.
///
///
+ [Admin]
[HttpGet("notifications/mobile")]
public async Task MobileNotificationSettings()
{
@@ -1116,6 +1168,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/gotify")]
public async Task GotifyNotificationSettings([FromBody] GotifyNotificationViewModel model)
{
@@ -1133,6 +1186,7 @@ namespace Ombi.Controllers.V1
/// Gets the gotify Notification Settings.
///
///
+ [Admin]
[HttpGet("notifications/gotify")]
public async Task GotifyNotificationSettings()
{
@@ -1150,6 +1204,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/webhook")]
public async Task WebhookNotificationSettings([FromBody] WebhookNotificationViewModel model)
{
@@ -1163,6 +1218,7 @@ namespace Ombi.Controllers.V1
/// Gets the webhook notification settings.
///
///
+ [Admin]
[HttpGet("notifications/webhook")]
public async Task WebhookNotificationSettings()
{
@@ -1177,6 +1233,7 @@ namespace Ombi.Controllers.V1
///
/// The model.
///
+ [Admin]
[HttpPost("notifications/newsletter")]
public async Task NewsletterSettings([FromBody] NewsletterNotificationViewModel model)
{
@@ -1191,6 +1248,7 @@ namespace Ombi.Controllers.V1
}
[ApiExplorerSettings(IgnoreApi = true)]
+ [Admin]
[HttpPost("notifications/newsletterdatabase")]
public async Task UpdateNewsletterDatabase()
{
@@ -1201,6 +1259,7 @@ namespace Ombi.Controllers.V1
/// Gets the Newsletter Notification Settings.
///
///
+ [Admin]
[HttpGet("notifications/newsletter")]
public async Task NewsletterSettings()
{