Closed tobias992 closed 6 months ago
Hey @tobias992 by default, Resume Manager does not hide the resume from anyone unless the setting to require an account is enabled and the user is not logged in.
With that said, you can achieve what you are asking with a code snippet that uses the resume_manager_user_can_post_resume
filter. Something like this (haven't actually tested it):
function do_not_allow_employers( $can_post ) {
$user = wp_get_current_user();
if ( in_array( 'employer', (array) $user->roles ) ) {
return false;
}
return $can post;
}
add_filter('resume_manager_user_can_post_resume', 'do_not_allow_employers');
Describe the bug If I register as an employer and use the application function (Resume-Manager), employers can also create a resume and apply for jobs. I don't think that should be the case.
To Reproduce
Expected behavior Employers shouldn't see the application forms in single job pages.
Isolating the problem (mark completed items with an [x]):
WordPress Environment