WordPress.org

Ready to get started?Download WordPress

Forums

Custom User Roles has no permissions. (2 posts)

  1. whatadewitt
    Member
    Posted 2 years ago #

    Hi everyone,

    I have the following code in my theme for a site I'm working on:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    These are two pretty simple user roles, almost like the editor and author, with some minor differences.

    The issue is that I created a test_publisher, and when I attempt to log in with that account I get the "You do not have sufficient permissions to access this page." page.

    I have no idea why this would be. I can log in to the site as my administrator, but my test_publisher gets this. I'm quite frustrated by this and would love to get it figured out, however, I have no idea how to fix this, as the code should be pretty straight forward. I attempted to move the code into a function that is called on the "init" hook, but that didn't work and now I am just losing my mind.

    If anyone could help me out here, I would really appreciate it.

    Thanks,

    --d

  2. whatadewitt
    Member
    Posted 2 years ago #

    Here is the code...

    http://pastebin.com/fZ2s2dgg

Topic Closed

This topic has been closed to new replies.

About this Topic