Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

View and edit permissions prevent Json output on production site


Go to End


1123 Views

Avatar
Stef87

Community Member, 66 Posts

13 December 2012 at 1:33am

Edited: 13/12/2012 1:55am

SilverStripe 2.4.7

Hi

I have developed a site with various pages which can only be viewed by one user group. There is also a JSON output which feeds data to a mobile app.

All of this works perfectly on the dev server but once I moved it to the production server the JSON feed stopped working. I figured out that it was caused by the setting I had applied in the access area of the page. When I set "can be viewed by" to be "inherit from parent" the json works but my users can't access the page. If I set it to that user group they can do what they are supposed to be able to do but the json stops working.

I'm confused about why this would be happening on the production server when the same code works on the dev server. I assume that it is to do with the version of PHP or something but I'm not sure.

Thanks

Edit
I've since discovered it is only a problem in safari.