Page 1 of 1

Admin editing of secure template page, redirects to login

Posted: Wed Sep 05, 2012 5:17 pm
by ESBertrand
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:

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}
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

Re: Admin editing of secure template page, redirects to logi

Posted: Wed Sep 05, 2012 6:32 pm
by uniqu3
It is known bug and will be fixed with 1.11.2

Re: Admin editing of secure template page, redirects to logi

Posted: Wed Sep 05, 2012 6:40 pm
by ESBertrand
Thanks for the quick reply, Uniqu3. Is there a place to go where bugs due for fixing in the next release are listed? We've had a few of these key issues come up since our upgrade and would love to be able to check against a list before submitting to the forums.

Also, is there a workaround for this? I wonder if there's a "$ccuser->InAdmin" boolean?

Erik