WordPress.org

Forums

YOP Poll
[resolved] Cheatin’ uh? (5 posts)

  1. Maples
    Member
    Posted 1 year ago #

    on page /wp-admin/admin.php?page=yop-polls-options I am trying to update the poll options. When I hit save, I get "Cheatin’ uh?"

    I have limited all roles with the exception of one in yop-poll/inc/admin.php. The user that I am attempting the changes under is a member of the one role. I have set that role to true for all values under function current_user_can.

    http://wordpress.org/plugins/yop-poll/

  2. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Maples,

    Can you please tell us what role the user has (subscriber, contributor, author, editor or administrator)?

    Regards,

    YOP Team

  3. Maples
    Member
    Posted 1 year ago #

    In this case I cloned the subscriber role and created a new role named polladmin.

  4. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Maples,

    The new user role (polladmin) should be registered in WordPress and his capabilities should include manage_options.

    You have more instructions at the link below

    http://codex.wordpress.org/Function_Reference/add_role

    Best wishes,

    YOP Team

  5. Maples
    Member
    Posted 1 year ago #

    Thank you. That worked. Unfortunately that gives too much access to the poll admins. I went ahead set the default options, and from this point forward they can just update the options on each poll as needed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.