Permalink
Browse files

fix PgnUser name null on chat bot instance of pigeon

BLL classes used by LogsProvider are now marked as "serializable" to allow LogProvider usage in Bot webapi apps
  • Loading branch information...
picce committed Mar 14, 2018
1 parent 86ffc76 commit a30698907d74fec56133d39def56afc71b8e414f
@@ -5,6 +5,7 @@
namespace PigeonCms
{
[Serializable]
public class ModuleType: XmlType
{
public class EditContent
@@ -31,6 +31,7 @@ public enum ModulesMenuSelection
MenuContent = 3
}
[Serializable]
[DebuggerDisplay("Id={id}, Name={moduleNamespace}{moduleName}")]
public class Module: ITableWithPermissions, ITableWithOrdering
{
@@ -16,6 +16,7 @@
namespace PigeonCms
{
[Serializable]
public class XmlType
{
public class IncludeFile
@@ -19,7 +19,9 @@ public static string UserName
get
{
string res = "";
if (HttpContext.Current != null && HttpContext.Current.User.Identity.IsAuthenticated)
if (HttpContext.Current != null
&& HttpContext.Current.User.Identity.IsAuthenticated
&& HttpContext.Current.User.Identity.Name != null)
{
res = HttpContext.Current.User.Identity.Name;
}

0 comments on commit a306989

Please sign in to comment.