protected function meetsConditions()
    {
        // If profile visibility is public, it can be display
        // for everyone, so users can edit own profiles.
        if (isset($this->visibility) && $this->visibility === 'public') {
            return true;
        }

        // Profile is hidden. Can be displayed only
        // for users that can edit user profiles.
        return $this->auth->user()->can('edit_user');
    }