Admin editing of secure template page, redirects to login

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
ESBertrand
Forum Members
Forum Members
Posts: 21
Joined: Tue Feb 02, 2010 5:02 am

Admin editing of secure template page, redirects to login

Post 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
uniqu3

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

Post by uniqu3 »

It is known bug and will be fixed with 1.11.2
ESBertrand
Forum Members
Forum Members
Posts: 21
Joined: Tue Feb 02, 2010 5:02 am

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

Post 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
Post Reply

Return to “CMSMS Core”