Admin editing of secure template page, redirects to login
Posted: Wed Sep 05, 2012 5:17 pm
We recently upgraded to 1.11.1 and have noticed an issue with the editing of any of many pages we have that are based on a "secure" template. By "secure", I mean we have code like the following which redirects users to a login page in order to view the page:
Since the upgrade, when we go to edit one of these pages, instead of being shown the edit screen, we're redirected to the "member-login" page. I suspect this may be an issue with the $ccuser object. Anyone else experiencing a similar issue? I'm going to proceed and start removing code to try and narrow it down further.
EDIT: Also meant to add that if I go ahead and login on that redirected page (it's our front-end login for members to view the secure content), I don't experience the problem. Basically, the admin editing interface appears to be running the Smarty code, where it did not used to do this (we've been using CMS Made Simple for nearly three years now).
Erik
Code: Select all
{if !$ccuser->loggedin() || ($ccuser->loggedin() && !$ccuser->memberof('Approved Members'))}
{session_put var='last_page' value=$page_alias}
{redirect_page page='member-login'}
{/if}
EDIT: Also meant to add that if I go ahead and login on that redirected page (it's our front-end login for members to view the secure content), I don't experience the problem. Basically, the admin editing interface appears to be running the Smarty code, where it did not used to do this (we've been using CMS Made Simple for nearly three years now).
Erik