mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Remove RegisterServerWithAdministratorAccess
This commit is contained in:
parent
f57ad728a5
commit
f911aca082
@ -1310,7 +1310,6 @@ namespace Emby.Server.Implementations
|
|||||||
{
|
{
|
||||||
if (!ServerConfigurationManager.Configuration.IsPortAuthorized)
|
if (!ServerConfigurationManager.Configuration.IsPortAuthorized)
|
||||||
{
|
{
|
||||||
RegisterServerWithAdministratorAccess();
|
|
||||||
ServerConfigurationManager.Configuration.IsPortAuthorized = true;
|
ServerConfigurationManager.Configuration.IsPortAuthorized = true;
|
||||||
ConfigurationManager.SaveConfiguration();
|
ConfigurationManager.SaveConfiguration();
|
||||||
}
|
}
|
||||||
@ -2225,32 +2224,6 @@ namespace Emby.Server.Implementations
|
|||||||
|
|
||||||
protected abstract void ShutdownInternal();
|
protected abstract void ShutdownInternal();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Registers the server with administrator access.
|
|
||||||
/// </summary>
|
|
||||||
private void RegisterServerWithAdministratorAccess()
|
|
||||||
{
|
|
||||||
Logger.LogInformation("Requesting administrative access to authorize http server");
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
AuthorizeServer();
|
|
||||||
}
|
|
||||||
catch (NotImplementedException)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
Logger.LogError(ex, "Error authorizing server");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected virtual void AuthorizeServer()
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public event EventHandler HasUpdateAvailableChanged;
|
public event EventHandler HasUpdateAvailableChanged;
|
||||||
|
|
||||||
private bool _hasUpdateAvailable;
|
private bool _hasUpdateAvailable;
|
||||||
|
Loading…
Reference in New Issue
Block a user