R
ragtek
Guest
This is a small add-on which allows the admins to delete ALL error logs.
(requested here: http://xenforo.com/community/posts/203608/ )
(requested here: http://xenforo.com/community/posts/203608/ )
****Update*****
1.0.1 includes now a own "admin permission" for viewing & deleting the xenforo error log
no, don't know a better nameHave you asked for a Thread Title change?
Prune Error Log? Might want to add some options to prune after x amount of days then. lol.no, don't know a better name
I actually mean that this mod now also works as permission toolno, don't know a better name
That's the normal behaviour.As super admin I was able to click it, with the default permission. It already says 'no logs here', without checking the checkbox first in the admins > permissons > view/delete logs.
1.0.2
/**
* Determines if the current user has the specified admin permission.
*
* @param string $permissionId
*
* @return boolean
*/
public function hasAdminPermission($permissionId)
{
if (empty($this->_user['user_id']) || empty($this->_user['is_admin']))
{
return false;
}
if ($this->isSuperAdmin())
{
return true;
}
..
f*ck, why didn't you say this name earlierErrornator View attachment 18409
We use essential cookies to make this site work, and optional cookies to enhance your experience.