Fixed UserProfile::canEditOwnProfile()

This is a crucial fix and should be merged.