WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Cheatin’ uh?

[Resolved] Cheatin’ uh?

  • Maples
    Member

    @kenmaplesgmailcom

    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author YOP
    Participant

    @yourownprogrammer

    Hi Maples,

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

    Regards,

    YOP Team

    Maples
    Member

    @kenmaplesgmailcom

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

    Plugin Author YOP
    Participant

    @yourownprogrammer

    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

    Maples
    Member

    @kenmaplesgmailcom

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Cheatin’ uh?’ is closed to new replies.