Kruzya
Well-known member
- Affected version
- 2.1.8 Patch 1
Steps to reproduce:
Expected result: No one error has been thrown (or another, not
Log entry:
- Log into ACP.
- Create Super user key with access to
user:write
. - Try use method
users/{id}/
withapi_bypass_permissions=1
server_error_occured
(see details from log entry below).Expected result: No one error has been thrown (or another, not
server_error_occured
) and method call finished.Log entry:
- ErrorException: [E_NOTICE] Trying to get property 'is_super_admin' of non-object
src\XF\Api\Controller\User.php:151
- Stack trace
src\XF\Api\Controller\User.php(151): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/var/www/fo...', 151, Array)
src\XF\Mvc\Dispatcher.php(350): XF\Api\Controller\User->actionPost(Object(XF\Mvc\ParameterBag))
src\XF\Api\Mvc\Dispatcher.php(27): XF\Mvc\Dispatcher->dispatchClass('XF:User', 'Post', Object(XF\Api\Mvc\RouteMatch), Object(XF\Api\Controller\User), NULL)
src\XF\Mvc\Dispatcher.php(113): XF\Api\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Api\Mvc\RouteMatch), Object(XF\Api\Controller\User), NULL)
src\XF\Mvc\Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Api\Mvc\RouteMatch))
src\XF\App.php(2184): XF\Mvc\Dispatcher->run()
src\XF.php(391): XF\App->run()
index.php(16): XF::runApp('XF\\Api\\App')
{main}
Last edited: