- Affected version
- 2.0.9
When viewing a profile with profile posts, there is a xf_admin_user query per unique user. This is because
Stack trace;
User::canEdit
checks to see if the user is aStack trace;
Code:
XF\Entity\User->getIsSuperAdmin() in src/XF/Mvc/Entity/Entity.php at line 142
XF\Mvc\Entity\Entity->get() in src/XF/Mvc/Entity/Entity.php at line 95
XF\Mvc\Entity\Entity->__get() in src/XF/Entity/User.php at line 361
XF\Entity\User->canEdit()
call_user_func_array() in src/XF/Template/Templater.php at line 939
XF\Template\Templater->method() in internal_data/code_cache/templates/l1/s25/public/member_macros.php at line 62
XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 662
XF\Template\Templater->callMacro() in internal_data/code_cache/templates/l1/s25/public/member_view.php at line 72
XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 1249
XF\Template\Templater->renderTemplate() in src/XF/Template/Template.php at line 24
XF\Template\Template->render() in src/XF/Mvc/Renderer/Html.php at line 48
XF\Mvc\Renderer\Html->renderView() in src/XF/Mvc/Dispatcher.php at line 332
XF\Mvc\Dispatcher->renderView() in src/XF/Mvc/Dispatcher.php at line 303
XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 44
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
XF\App->run() in src/XF.php at line 328
XF::runApp() in index.php at line 13