Fixed "Start a new conversation" shown to user even without permission

TickTackk

Well-known member
Affected version
2.0.*
Under template: PAGE_CONTAINER

Find:
PHP:
                                        <span class="menu-footer-opposite">
                                            <a href="{{ link('conversations/add') }}">{{ phrase('start_new_conversation') }}</a>
                                        </span>
Replace with:
PHP:
                                        <span class="menu-footer-opposite">
                                            <xf:if is="$xf.visitor.canStartConversation()">
                                                <a href="{{ link('conversations/add') }}">{{ phrase('start_new_conversation') }}</a>
                                            </xf:if>
                                        </span>
 
Back
Top Bottom