Kohana_3: problem with logging out if on the profile page

Tim Almdal <[email protected]> Sun, 09 Jun 2013 21:40:36 -0700
Newsgroups gmane.comp.web.gallery.devel
Message-ID <[email protected]>
--===============3365279289357240763==
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I have time to fix this one as well.<br>
    <br>
    Login as administrator; click the link to bring up the administrator
    profile, then logout... boom<br>
    <br>
    The problem is that the we don't use the admin theme for the user
    profile page, so it then checks to see if there is an item and since
    there is nothing in this gallery, that's null, so the continue_url
    is set to the current page (show profile)... Logout works and now we
    have a guest user and we try to display the profile... which then
    fails.<br>
    <br>
    Only options I can think of are:<br>
    <ol>
      <li>hacky code in Gallery Event that checks that the current page
        is the profile page and set the current url to the index page
        instead; <br>
      </li>
      <li>Or, the show profile script checks that the user is valid
        before trying to do anything and if the user is the guest,
        redirect to the main index page</li>
    </ol>
    Any other ideas<br>
    <br>
  </body>
</html>


--===============3365279289357240763==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
--===============3365279289357240763==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

__[ g a l l e r y - d e v e l ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]
--===============3365279289357240763==--