diff --git a/includes/admin/class-wp-job-manager-settings.php b/includes/admin/class-wp-job-manager-settings.php index 9a38516f4..07adcc29c 100644 --- a/includes/admin/class-wp-job-manager-settings.php +++ b/includes/admin/class-wp-job-manager-settings.php @@ -624,6 +624,16 @@ protected function init_settings() { 'desc' => sprintf( __( 'Enter which roles or capabilities allow visitors to view a single job listing. If no value is selected, everyone (including logged out guests) will be able to view job listings.', 'wp-job-manager' ), 'http://codex.wordpress.org/Roles_and_Capabilities' ), 'track' => 'bool', ], + [ + 'name' => 'job_manager_submit_job_listing_capability', + 'std' => [], + 'label' => __( 'Submit Job Capability', 'wp-job-manager' ), + 'type' => 'capabilities', + 'sanitize_callback' => [ $this, 'sanitize_capabilities' ], + // translators: Placeholder %s is the url to the WordPress core documentation for capabilities and roles. + 'desc' => sprintf( __( 'Enter which roles or capabilities allow visitors to submit a job listing. If no value is selected, everyone (including logged out guests) will be able to submit job listings.', 'wp-job-manager' ), 'http://codex.wordpress.org/Roles_and_Capabilities' ), + 'track' => 'bool', + ], ], ], ] diff --git a/templates/access-denied-submit-job_listing.php b/templates/access-denied-submit-job_listing.php new file mode 100644 index 000000000..c60e7bd25 --- /dev/null +++ b/templates/access-denied-submit-job_listing.php @@ -0,0 +1,20 @@ + + +
diff --git a/templates/job-submit.php b/templates/job-submit.php index 2dea23117..d92e80f62 100644 --- a/templates/job-submit.php +++ b/templates/job-submit.php @@ -8,7 +8,7 @@ * @author Automattic * @package wp-job-manager * @category Template - * @version 1.34.3 + * @version $$next_version$$ */ if ( ! defined( 'ABSPATH' ) ) { @@ -17,46 +17,30 @@ global $job_manager; $captcha_version = WP_Job_Manager\WP_Job_Manager_Recaptcha::instance()->get_recaptcha_version(); -?> -