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; }