Any way to make the profile "public" by default for all users ?

Topics: Business Logic Layer
Jan 12, 2014 at 1:34 PM
I want all the users to be able to view / update their profile but seems like when any registered user click on profile page, they can't access it.

I am looking at : Admin / Views / Users / Profile.html
<div class="checkbox">
                        <label>
                            <input id="cbPrivate" type="checkbox" name="ckEnabled" data-ng-model="user.Profile.Private" />
                            {{lbl.isPrivate}}
                        </label>
                    </div>
Any way to make the profile "public" by default for all users ?
Jan 13, 2014 at 9:18 PM
anyone ?
Coordinator
Jan 13, 2014 at 10:10 PM
It is set in the repository, in the Core library. You would need to recompile.

BlogEngine.Core/Data/UersRepository.cs
static Profile GetProfile(string id)
...
if (pf == null)
{
    pf = new AuthorProfile(id);
    pf.Birthday = DateTime.Parse("01/01/1900");
    pf.DisplayName = id;
    pf.EmailAddress = Utils.GetUserEmail(id);
    pf.FirstName = id;
    pf.Private = false; // <-- changed to "false"
    pf.Save();
}