I have a Custom_Controller that extends Page_Controller. I access some of the functions via routes.
routes.yml
---
Name: cartroutes
After: framework/routes#coreroutes
---
Director:
rules:
'xxx//$Action/$ID' : 'xxx_Controller'
---
Controller
class xxx_Controller extends Page_Controller {
private static $allowed_actions = array (
'View'
);
private static $url_handlers = array(
'delete/$ID!' => 'View'
);
All of this works fine on my local machine. However when I load it to my dev server I get the error:
You must log in with your CMS password in order to view the draft or archived content. <a href="/xxx_Controller/?stage=Live">Click here to go back to the published site.</a>
I don't have anything in this controller that specifies whether it is staged, live etc
I am using 3.1.14 (tried reverting to 3.1.13 but no luck)
Anyone know what to do to resolve this?
Thanks