[TYPO3-mvc] Ajax call shows hidden and deleted records

Sebastian Schreiber me at schreibersebastian.de
Mon Dec 23 00:26:59 CET 2013


Hi dirk, you can use the defined constants TYPO3_MODE. It should return FE or BE. 

Sebastian Schreiber

> Am 22.12.2013 um 17:35 schrieb Dirk Wenzel <wenzel at webfox03.de>:
> 
> Hi all,
> I got an Ajax action which is being called from frontend and routed through an dispatcher.
> Even though I use the same methods for the query as in other non-ajax actions my repository returns hidden and deleted records (which it shouldn't).
> 
> I guess the setRespectEnableFields-Settings are not available if not in Frontend context.
> 
> So how can I detect whether we are in Frontend context and adjust my query accordingly?
> 
> Thanks in advance
> Dirk
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc


More information about the TYPO3-project-typo3v4mvc mailing list