We are facing the same issue.. The same section access code is working on the environment without publisher and on the other server with publisher same code is not working.
Server with Publisher and without publisher make the difference for the coding ( for Section Access).