Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]

- TMS-1237: Add a custom Google Translate functionality to navigation
- Remove delete site-link from wp-admin

## [1.17.0] - 2026-04-12

Expand Down
9 changes: 9 additions & 0 deletions lib/Roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,9 @@ private function modify_admin_caps() : void {
'themes.php',
'customize.php',
],
'tools.php' => [
'ms-delete-site.php',
],
] );

$role = apply_filters( 'tms/roles/admin', $role );
Expand Down Expand Up @@ -657,6 +660,9 @@ private function modify_editor_caps() : void {
'themes.php',
'customize.php',
],
'tools.php' => [
'ms-delete-site.php',
],
] );

$role->add_caps( $this->tablepress_all_capabilities );
Expand Down Expand Up @@ -715,6 +721,9 @@ private function modify_author_caps() : void {
'themes.php',
'customize.php',
],
'tools.php' => [
'ms-delete-site.php',
],
] );

$role->remove_caps( $this->remove_from_all );
Expand Down
Loading