Skip to content

Commit 670b2a7

Browse files
committed
v2.0.6: Purge ACL Loosen
1 parent fd4f7e2 commit 670b2a7

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to TNC Toolbox for WordPress will be documented in this file.
33

4+
## [2.0.6] - 2025-11-14
5+
6+
### 🐛 Bug Fix
7+
- Cache Purge: Loosen required permission (edit_posts)
8+
49
## [2.0.5] - 2025-11-13
510

611
### 🐛 Bug Fix

tnc-toolbox/core/core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public static function set_notice($message, $type = 'error') {
208208
*/
209209
public function nginx_cache_purge() {
210210
check_admin_referer('nginx_cache_purge');
211-
if (!current_user_can('manage_options')) {
211+
if (!current_user_can('edit_posts')) {
212212
wp_die(__('You are not allowed to do that.'));
213213
}
214214
$response = TNC_cPanel_UAPI::make_api_request('NginxCaching/clear_cache');

tnc-toolbox/readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Donate link:
55
Contributors:
66
Tags: NGINX, Cache Purge, Web Performance, Automatic Purge, Freeware
77
Tested up to: 6.8
8-
Stable tag: 2.0.5
8+
Stable tag: 2.0.6
99
License: GPLv3
1010
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1111

@@ -112,6 +112,9 @@ https://docs.cpanel.net/cpanel/security/manage-api-tokens-in-cpanel/
112112

113113
== Changelog ==
114114

115+
= 2.0.6: Nov 14, 2025 =
116+
* Cache Purge: Loosen required permission (edit_posts)
117+
115118
= 2.0.5: Nov 13, 2025 =
116119
* Security: Restrict actions to Cron/Hook & via Perms
117120

tnc-toolbox/tnc-toolbox.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
* @package TNCTOOLBOX
66
* @author The Network Crew Pty Ltd (TNC & Co.)
77
* @license gplv3
8-
* @version 2.0.5
8+
* @version 2.0.6
99
*
1010
* @wordpress-plugin
1111
* Plugin Name: TNC Toolbox: Web Performance
1212
* Plugin URI: https://merlot.digital
1313
* Description: Adds functionality to WP - designed for NGINX-powered Servers on cPanel+WHM. Made to help you fly online!
14-
* Version: 2.0.5
14+
* Version: 2.0.6
1515
* Author: The Network Crew Pty Ltd (TNC & Co.)
1616
* Author URI: https://tnc.works
1717
* Domain Path: /locale
@@ -29,7 +29,7 @@
2929
define('TNCTOOLBOX_NAME', 'TNC Toolbox');
3030

3131
// Plugin version
32-
define('TNCTOOLBOX_VERSION', '2.0.5');
32+
define('TNCTOOLBOX_VERSION', '2.0.6');
3333

3434
// Plugin Root File
3535
define('TNCTOOLBOX_PLUGIN_FILE', __FILE__);

0 commit comments

Comments
 (0)