Move SecurityManager to BaseKernel/IKernel

This commit is contained in:
Eric Reed
2013-02-26 17:19:45 -05:00
parent 1925288a86
commit 4b2cf29fe1
5 changed files with 22 additions and 13 deletions

View File

@@ -203,9 +203,9 @@ namespace MediaBrowser.Api
var result = new PluginSecurityInfo
{
IsMBSupporter = kernel.PluginSecurityManager.IsMBSupporter,
SupporterKey = kernel.PluginSecurityManager.SupporterKey,
LegacyKey = kernel.PluginSecurityManager.LegacyKey
IsMBSupporter = kernel.SecurityManager.IsMBSupporter,
SupporterKey = kernel.SecurityManager.SupporterKey,
LegacyKey = kernel.SecurityManager.LegacyKey
};
return ToOptimizedResult(result);
@@ -221,8 +221,8 @@ namespace MediaBrowser.Api
var info = _jsonSerializer.DeserializeFromStream<PluginSecurityInfo>(request.RequestStream);
kernel.PluginSecurityManager.SupporterKey = info.SupporterKey;
kernel.PluginSecurityManager.LegacyKey = info.LegacyKey;
kernel.SecurityManager.SupporterKey = info.SupporterKey;
kernel.SecurityManager.LegacyKey = info.LegacyKey;
}
/// <summary>