WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. kimipooh
    Member
    Posted 1 year 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......

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    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.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.