PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.22
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.22
1.10.23 1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 All 167 releases
← All changes | includes/API/V1/Settings.php +2 -2 1.10.7 → 1.10.22 View file →
@@ -51,9 +51,9 @@
51 51 * Sections whose update route uses a permission callback other than the
52 52 * default manage_woocommerce_pos check.
53 53 *
54 54 * The access section mutates WordPress role capabilities, so its writes
55 - * require edit_users + promote_users.
55 + * require manage_woocommerce_pos + edit_users + promote_users.
56 56 *
57 57 * @var array<string, string>
58 58 */
59 59 private const UPDATE_PERMISSION_CALLBACKS = array(
@@ -346,9 +346,9 @@
346 346 *
347 347 * @return bool
348 348 */
349 349 public function update_access_permission_check(): bool {
350 - return current_user_can( 'edit_users' ) && current_user_can( 'promote_users' );
350 + return current_user_can( 'manage_woocommerce_pos' ) && current_user_can( 'edit_users' ) && current_user_can( 'promote_users' );
351 351 }
352 352
353 353 /**
354 354 * Filter payment gateways settings.