Making admin logs available to those with the permission and not just super admin (May not need this if custom mod works)

XGC EMINENCE XC

Administrator
Staff member
KoG LOOKOUT NOW
Check this out Viper and see if this is a viable option.


 

XGC xVIPERx XI

Administrator
Staff member
KoG LOOKOUT NOW
This article was extremely useful. I can now make any element either super admin or admin Permission.

Path: src\XF\Admin\Controller

Admin User:

protected function preDispatchController($action, ParameterBag $params)
{
$this->assertAdminPermission('user');
}

Super Admin:

protected function preDispatchController($action, ParameterBag $params)
{
$this->assertSuperAdmin();
$this->assertPasswordVerified(1800); // 30 minutes
}
 
Top