PluginProbe
Yatra – Travel Booking & Tour Operator Software / trunk
Yatra – Travel Booking & Tour Operator Software vtrunk
3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 2.0.10 2.0.11 All 82 releases
← All changes | app/Controllers/CacheController.php +5 -2 3.0.3trunk View file →
@@ -111,13 +111,16 @@
111 111 $instance->register_routes();
112 112 }
113 113
114 114 /**
115 - * Check permissions for cache operations
115 + * Cache management endpoints — gated on the settings cap. Cache
116 + * flushes / regenerates are an operational task that fits the
117 + * same risk profile as other settings changes. WP admins pass
118 + * via the Team module's admin-fallback filter.
116 119 */
117 120 public function checkPermissions(): bool
118 121 {
119 - return current_user_can('manage_options');
122 + return current_user_can('yatra_manage_settings');
120 123 }
121 124
122 125 /**
123 126 * Get cache statistics