Support » Plugin: Job Manager » [Plugin: Job Manager] Editor: permissions denied

  • Love this plug-in. I am so glad I went with your and not some of the others.

    One question I have, I need to set user roles. At the moment “editor” roles cant access the plugin as it gives a “permission denied” error.

    Is there a way to be able to use the Job Manager and not have to be in “admin” role?


Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gary Pendergast


    Yes, they can, just don’t click on the ‘Job Manager’ menu item, click on the expand next to it. I have that setup to direct to the settings, which is only available to admins – I need to do some re-writing to degrade nicely.

    Hi Gary, I’m using the capabilities manager plugin to create custom roles, and I want to assign a capability to add jobs to a custom role of Associate (who would be sponsors, advertisers and others).

    I don’t want the role to be able to delete or edit other jobs. Is there a capability slug I can add such as add_jobs, edit_own_jobs, edit_others_jobs, delete_jobs, delete_own_jobs.

    Here’s what I did that worked (but one issue remain to be verified):

    1, Created a list_other_posts capability using Capability Manager plugin.
    2. Assigned list_other_posts to admin and editor and associate, but not member.
    3. Modified the Manage Your Own Posts plugin to restrict listings based on whether the list_other_posts capability was present. (This plugin is not in the wordpress plugin directory, and uses the old ‘level_5’ capability, so that had to be changed).
    4 Looking into your plugin I see the admin menu it adds for those with publish_posts capability, so I had to remove that capability from my Member to avoid them being able to add jobs — however, now I have to publish posts for my members…

    This would work better with a custom capability…
    I might have to change your admin_menu_page function call so I can add publish_posts back for my Members and restrict job manager based on something like “manage_jobs”.

    Any chance you can incorporate that into your plugin? As said above add_jobs, edit_own_jobs, edit_others_jobs, delete_jobs, delete_own_jobs as well as manage_jobs for the menu appearing would be great to have.

    Plugin Author Gary Pendergast


    I’ve made a note to look into this:

    It won’t be until after 0.8, because I’m making some changes to how job posting works (allowing job board like behaviour), so I don’t really want to throw this into the mix as well.

    This seems to be an option that multiple people seem to be needing so to have it sooner rather than later would be more beneficial.

    Anyway that being said, after briefly skimming the code in the Job Manager admin.php (between lines 22 and 35) The menu is being referenced by the ‘publish_posts’ capability. This was mentioned above by spacechampion and isn’t very ideal.

    So this was what I did (THIS IS NOT 100% tested but appears to be working for my setup so far (change at your own risk)) (using wordpress 3.0.x):

    1)I have a Role and Capabilities plugin installed (

    2)I added a new Role (i.e. JM Admin) and then I added a custom capability (i.e. jobmanager). I then selected this role to be able to have the capability to read_private_pages and saved.

    *If you do not allow the Role to have the read_private_pages capability then the menu items for Applications, Emails, Interviews will not function properly. BE WARNED THAT THIS ROLE WILL LIKELY BE ABLE TO SEE ANYTHING ELSE THAT ALSO USES THE READ_PRIVATE_PAGES CAPABILITY SO ONLY ADD USERS TO THIS ROLE THAT YOU WOULD TRUST TO HAVE ACCESS.

    *Optionally the manage_options capability will allow this role to have access to change the Job Manager settings, if you want this new Role to have access to Job Manager Settings then allow it to access manage_options. If you don’t choose to add this to your new role when the user of that role clicks that option they will get a message that says they do not have the permissions to access those options. BE WARNED THAT IF YOU DO ALLOW THIS ROLE TO USE MANAGE_OPTIONS THAT IT MIGHT GRANT ACCESS TO OTHER PLUGIN SETTINGS/OPTIONS THAT YOU MAY NOT WANT USERS OF THIS NEW ROLE TO ACCESS.

    3)I assigned a test user to this new Role.

    4)As said above, I opened admin.php found in the Job Manager plugin folder and between lines 22 – 35 where it says ‘publish_posts’ I replaced with ‘jobmanager’; that was the capability I set up earlier (the specific lines for me were, 27, 29 & 30).

    5)I logged out of my admin account, logged into my test user account and viola, Job Manager menu and functions were there.

    *This is a temporary fix that I used (not 100% tested yet) until Gary is able to implement a better set of capability settings. If this plugin is auto-updated as new versions come out the settings you change in the admin.php will most likely get overwritten.

    *Backup your Job Manager admin.php before making any changes.

    Hope that might help some people.

    Update (won’t let me edit my last post anymore): I forgot to post that before step 6 I went into my Administrator Role and also gave that access to the new ‘jobmanager’ capability.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Job Manager] Editor: permissions denied’ is closed to new replies.