Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
In core.js[CODE=javascript] getAutoCompleteUrl: function() { if (XF.getApp() == 'admin') { return XF.canonicalizeUrl('admin.php?users/find') } else { return XF.canonicalizeUrl('index.php?members/find') } },[/CODE]but in XF\Admin\Controller\User controller:[CODE=php] protected function preDispatchController($action, ParameterBag $params) { switch (strtolower($action)) { case 'index': break; default: $this->assertAdminPermission('user'); } }[/CODE]
In core.js
core.js
[CODE=javascript] getAutoCompleteUrl: function()
{
if (XF.getApp() == 'admin')
return XF.canonicalizeUrl('admin.php?users/find')
}
else
return XF.canonicalizeUrl('index.php?members/find')
},[/CODE]
but in XF\Admin\Controller\User controller:
XF\Admin\Controller\User
[CODE=php] protected function preDispatchController($action, ParameterBag $params)
switch (strtolower($action))
case 'index':
break;
default:
$this->assertAdminPermission('user');
}[/CODE]
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences