• Resolved ivantrendafilov

    (@ivantrendafilov)


    I have a site that has 900+ TablePress tables and a user with the editor role. The user is able to edit almost all of the tables just fine, but for whatever reason is not able to edit a table which he has created. The edit button doesn’t show up, but when I craft an edit link, this error gets thrown

    This message was triggered by tablepress.

    Call stack:

    1. wp_die()
      wp-content/plugins/tablepress/controllers/controller-admin.php:494
    2. TablePress_Admin_Controller->load_admin_page()
      wp-includes/class-wp-hook.php:308
    3. do_action('load-toplevel_page_tablepress')
      wp-admin/admin.php:237

    I can see from the code that this just checks whether the user has the ‘tablepress_edit_table’ role and I can see that, indeed, the user has it. In fact, he has no problem editing other tables he has authored or tables authored by other people.

    Is this some kind of meta data issue? Any idea?



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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    That sounds very strange. What is the exact error message that you are getting?

    I think if this were a permissions issue, you would simply get a “not allowed” message, but not a PHP error.

    Regards,
    Tobias

    Thread Starter ivantrendafilov

    (@ivantrendafilov)

    Hey Tobias,

    So, the stack trace is added by the plugin Query Monitor. The default error message indeed says “Sorry, you are not allowed to access this page.”

    Thread Starter ivantrendafilov

    (@ivantrendafilov)

    But the person has the Editor role and the tablepress_edit_tables capability. Indeed, TP shows them as the author of the table.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, ok. Thanks for the clarification!

    To be honest, right now, I have no clue what’s going on here. As one idea, can you please try with a newly created “Editor” user, so that we can see if this depends on the actual user or the user role? If that doesn’t really help either, please get in touch via the email from near the bottom of https://tablepress.org/pricing/ , please.

    Regards,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Strange permissions issue’ is closed to new replies.