WordPress.org

Ready to get started?Download WordPress

Forums

SiteTree
[resolved] "Cheatin' uh?" When Posting Pages - Question About Access Levels (3 posts)

  1. Obfuscated
    Member
    Posted 1 year ago #

    Hi, I have a multi-site setup here at work. We started getting "Cheatin' uh?" messages when creating or updating pages (other post types were fine) when someone who wasn't an admin was making the change. I traced the error to the SiteTree plugin, specifically the sitetree-metabox.class.php file, process_metadata() function, line 117.

    It looks like it's getting hung up on the second condition, we're running multisite and the user is not a super admin. Am I interpreting the purpose of the code correctly: that in multisite, only super admins can make page posts? If so, this seems kind of restrictive.

    Thanks for your help.

    http://wordpress.org/extend/plugins/sitetree/

  2. Luigi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    yes, that's the meaning of that line of code but the second part of the OR expression shouldn't be there. It's part of an old piece of code I reused from another class but left unedited by mistake. In other words: you run into a bug.

    (I'm going to release SiteTree 1.5 in the next days.)

    Thank you for the note.

  3. Obfuscated
    Member
    Posted 1 year ago #

    Tested the new 1.5 release and didn't have this issue in the new version. Thanks for the prompt fix.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.