From 71deb9d5dc460cbd7aa863364541c94de8de39d1 Mon Sep 17 00:00:00 2001 From: slace Date: Thu, 15 Apr 2010 12:53:47 +0000 Subject: [PATCH] Accepting patch #5758 into 4.1 branch [TFS Changeset #65495] --- umbraco/cms/businesslogic/member/MemberType.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umbraco/cms/businesslogic/member/MemberType.cs b/umbraco/cms/businesslogic/member/MemberType.cs index e17c94e533..5237d31dd1 100644 --- a/umbraco/cms/businesslogic/member/MemberType.cs +++ b/umbraco/cms/businesslogic/member/MemberType.cs @@ -86,7 +86,7 @@ namespace umbraco.cms.businesslogic.member /// True if the Member can edit the data public bool MemberCanEdit(propertytype.PropertyType pt) { if(propertyTypeRegistered(pt)) { - return (SqlHelper.ExecuteScalar("Select memberCanEdit from cmsMemberType where NodeId = " + this.Id +" And propertytypeId = "+pt.Id)); + return (Convert.ToBoolean(SqlHelper.ExecuteScalar("Select memberCanEdit from cmsMemberType where NodeId = " + this.Id + " And propertytypeId = " + pt.Id))); } return false; } @@ -112,7 +112,7 @@ namespace umbraco.cms.businesslogic.member { if(propertyTypeRegistered(pt)) { - return SqlHelper.ExecuteScalar("Select viewOnProfile from cmsMemberType where NodeId = " + this.Id +" And propertytypeId = "+pt.Id); + return Convert.ToBoolean(SqlHelper.ExecuteScalar("Select viewOnProfile from cmsMemberType where NodeId = " + this.Id + " And propertytypeId = " + pt.Id)); } return false; }