Support » Plugin: Frontend Checklist » Custom Role Access

  • Resolved manakuke

    (@manakuke)


    It appears that only the Administrator role has access to update checklists on the front end. I have a plugin to create custom roles, but when I create one that has the “manage_options” option, it does not allow for saving on the front end with cookies=off. Any suggestions? We want to give end user “subscribers” (aka students at our school) access to check lists for class registration, but require them to log in and have it record their progress via the check list. I got it to work, but only with the administrator role, and creating a custom role didn’t seem to work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ok so I figured out that my default subscriber role and any custom roles were not working. I had a script in the functions.php file that was designed to block access to the dashboard for non-admins as well as remove the admin bar. Seems like the wp_redirect(home_url()); function prevents the checklist ajax code from working. Blocks both the saving and retrieval of checklist status.

    • This reply was modified 2 years, 7 months ago by  manakuke.
    Plugin Author JonasBreuer

    (@jonasbreuer)

    Hey manakuke,

    I’m happy that you figured out what the problem was 🙂

    Cheers,
    Jonas

    Is there a reasonable way to update the plugin to avoid a conflict with this WordPress function? There are use case scenarios where it would be helpful to be able to use without conflict with the plugin.

    Plugin Author JonasBreuer

    (@jonasbreuer)

    Sorry, your second questions slipped through. I don’t know where exactly and under what circumstances you are using wp_redirect(home_url());. Generally speaking, this code redirects the user to the homepage. This redirection happens an HTTP level, so before any AJAX calls can take place. There should be no general problem with the plugin after the redirect. I suspect that there is some deeper problem in connection with the custom user roles, but without accessing the full code, I have no way of identifying the exact problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Role Access’ is closed to new replies.