Michael Pusch Posted December 29, 2019 at 10:54 AM Share Posted December 29, 2019 at 10:54 AM Hi, just a little question about a conditional for output a tab only for admins and listing owners. This code from the docs don't work for me: <?php if ( $listing['User']['user_id'] == $User->id || $this->auth->admin ): ?> It works for admins, but not for the listing owner. In detail.thtml I tried this code: <?php if ( $listing['User']['user_id'] == $User->id || $this->auth->admin ): ?> <li><a href="#WeitererEintragTab"><span class="jrIconPlus"></span><?php __t("Weiterer Eintrag");?></a></li> <?php endif; ?> I want to show an aditional tab with links for listing owners to create other listings in other listing types. Where is my error? Link to comment
Alejandro Posted December 29, 2019 at 04:53 PM Share Posted December 29, 2019 at 04:53 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Michael Pusch Posted December 29, 2019 at 07:39 PM Author Share Posted December 29, 2019 at 07:39 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Michael Pusch Posted December 29, 2019 at 07:49 PM Author Share Posted December 29, 2019 at 07:49 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted December 30, 2019 at 04:38 PM Share Posted December 30, 2019 at 04:38 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts