Fixes cast issue

This commit is contained in:
Shannon
2013-07-31 18:28:18 +10:00
parent dcf730a1bc
commit d8630a3ec1
2 changed files with 2 additions and 2 deletions

View File

@@ -250,7 +250,7 @@ namespace Umbraco.Web.Security
var identity = _httpContext.GetCurrentIdentity();
if (identity == null)
return -1;
return (int)identity.Id;
return Convert.ToInt32(identity.Id);
}
/// <summary>

View File

@@ -184,7 +184,7 @@ namespace umbraco.BasePages
var identity = HttpContext.Current.GetCurrentIdentity();
if (identity == null)
return -1;
return (int)identity.Id;
return Convert.ToInt32(identity.Id);
}
// Added by NH to use with webservices authentications