# Userabfrage in tpl datei

**URL:** https://forum.shopware.com/t/userabfrage-in-tpl-datei/27527
**Category:** Themes & Design
**Created:** [22. Mai 2015 um 16:36 UTC](https://forum.shopware.com/t/userabfrage-in-tpl-datei/27527 "2015-05-22T16:36:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mattes](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@Mattes](https://forum.shopware.com/u/Mattes)
#### Post date: [22. Mai 2015 um 16:36 UTC](https://forum.shopware.com/t/userabfrage-in-tpl-datei/27527/1 "2015-05-22T16:36:33Z")

</div>

Hallo Wie kann ich in einer tpl Datei eine Userabfrage machen ob der User eingelogt ist oder nicht `if ( Shopware()-\>Modules()-\>Admin()-\>sCheckUser() ) { // Kunde eingeloggt }else{ // Kunde nicht eingeloggt }` So geht es in Bootstrap.php aber leider nicht in einer tpl Datei Wie mache ich den sCheckUser in tpl Datei?
