#51 ✓resolved
Kieran P

Viewing user profiles only accessable when logged in

Reported by Kieran P | August 29th, 2008 @ 10:35 PM | in 1.2

When you logout of Kete, viewing someones profile redirects you to /site/all/topics

Example:

http://kete.net.nz/site/account/...

Comments and changes to this ticket

  • James

    James September 5th, 2008 @ 02:21 PM

    • Tag set to inconsistent

    Kieran,

    If you take a look at account_controller.rb on line 160 you'll see that this is intentional.

    
      def show
        if logged_in?
          if params[:id]
            @user = User.find(params[:id])
          else
            @user = self.current_user
          end
          @extended_fields = @user.xml_attributes
        else
          flash[:notice] = "You must be logged in to view user profiles."
          redirect_to :action => 'index'
        end
      end
    

    I'm wondering though if this shouldn't redirect to the account login page instead (i.e. DEFAULT_REDIRECTION_HASH).

    Cheers, James

  • Kieran P

    Kieran P October 3rd, 2008 @ 09:08 AM

    • State changed from “new” to “resolved”
    • Milestone set to 1.2

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.

People watching this ticket

Pages