fix(07-01): allow providers to edit published job offers

Added edit_published_job_offers capability to ddhh_provider role and created upgrade_roles function to automatically add this capability to existing provider accounts. Providers can now edit their published job offers from the dashboard.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-17 21:20:16 +09:00
parent 7f2c5fa6a6
commit 32a22e5fd6
2 changed files with 21 additions and 0 deletions

View File

@@ -50,6 +50,9 @@ class DDHH_JM_Job_Manager {
// Initialize post types
add_action( 'init', array( 'DDHH_JM_Post_Types', 'register' ) );
// Upgrade roles with any new capabilities
add_action( 'init', array( 'DDHH_JM_Roles', 'upgrade_roles' ) );
// Initialize ACF fields
add_action( 'acf/init', array( 'DDHH_JM_ACF_Fields', 'register_fields' ) );