# Preparations
* in IDE:
* open `core/units/users/users_event_handler.php` file for editing
* in the `\UsersEventHandler::CheckPermission` method declaration add this code fragment:
```
lang=php
if ( $event->Name === 'OnEdit' ) {
/** @var kPermissionsHelper $perm_helper */
$perm_helper = $this->Application->recallObject('PermissionsHelper');
return $perm_helper->finalizePermissionCheck($event, false);
}
```
* save changes
* open `core/admin_templates/users/users_list.tpl` file for editing
* wrap the `a_toolbar.AddButton( new ToolBarButton('edit' ...` line with these tags `<inp2:m_if check="m_CheckPermission" perm_event="u:OnEdit"> ... </inp2:m_if>`
* save changes
# Test
# login to the Admin Console as a `root` user
# go to {nav Users Management > Users} section
# confirm, that the `Edit` toolbar button is visible and opens the current user for editing
# logout
# login to the Admin Console as a non-`root` user
# go to {nav Users Management > Users} section
# confirm, that the `Edit` toolbar button is NOT visible
# logout