Custom User Roles has no permissions. (2 posts)

  1. whatadewitt
    Posted 4 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.



  2. whatadewitt
    Posted 4 years ago #

    Here is the code...


Topic Closed

This topic has been closed to new replies.

About this Topic