[resolved] Nondisplay hazardous option from all users (2 posts)

  1. kimipooh
    Posted 3 years ago #

    TablePress is very nice plugin, but I afraid that there are some remove buttons for removing the table data in the admin page.

    Even if the user has the administrator, he/she may accidentally push the delete button.
    The plugin does not have the revision function, so I think that the data may be removed easily.

    Therefore, I suggest about the following idea.

    1. Permission to "Delete" function.
    Selection: Admin, Editor, and so on.

    2. Diable "Delete" functions tentatively.
    If the check on, all users (including administrator) cannot access to the "Delete" functions.

    3. Allow Permission about "Delete row" and "Delete col" in "Delete" functions.
    Selection: Admin, Editor, and so on.

    For example, the editor can only access to "Delete row" and "Delete col" in "Delete" functions. The contributor cannot access to all "Delete" functions.
    The administrator can access to all "Delete" functions, but normally, he/she only access to "Delete row" and "Delete col".

    Basically, I want to restrict the "Delete" functions, but some users need to get the administration permission due to some other plugin......


  2. TobiasBg
    Plugin Author

    Posted 3 years ago #


    thanks for your question! Sorry for the late answer. As I was on vacation, I didn't have a chance to reply earlier.

    It is possible to prohibit certain users roles from deleting a table, as TablePress supports WordPress capabilities. You can for example use the "Role Manager" component of the "Members" plugin from http://wordpress.org/plugins/members/ to take away the "tablepress_delete_tables" capabilities from certain user roles.

    Prohibing deletion of rows or columns is however not possible, as that's done in JavaScript. Also, as one could simply reload the page before saving, this should not be a problem. And it would actually not prevent data loss, as a user could delete content from a table by simply using the backspace or delete keys.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.