• Resolved cnmcomunicazione

    (@cnmcomunicazione)


    Hi guys,
    I need to disable the “Table Options” and “Features of the DataTables Javascript library” panels for the user roles Gestore and Editor.
    I’m using Advanced Access Manager to manage capabilities so I can disable them if I know the capability names.
    Thank you all.

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I see what you mean, but unfortunately, I’ll have to disappoint you here. This is not directly possible. The two mentioned sections are not governed by separate access capabilities. That is, if a user has the tablepress_edit_tables capability, they can also change/use these settings and options.

    Now what could work (even though it’s not 100% safe) is to hide these sections with CSS code. For example, you could inject

    #tablepress_edit-table-options,
    #tablepress_edit-datatables-features {
      display: none !important;
    }

    into the page (e.g. by using the approach that the TablePress Extension from https://tablepress.org/extensions/input-field-size/ uses).
    This would hide these sections, but experienced users could technically make them visible again in their browsers.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Hide panels for a specific user role’ is closed to new replies.