Okay
  Public Ticket #1270111
A table customised for user but only editable by admin at backend
Closed

Comments

  • Wilson Lau started the conversation

    I want to create a table with four columns (i.e. Date, Type, Detail, Amount of money). Users can only see their own data. This table should only be editable by admin at backend so that I can input the related data for their reference when I have made a payment to these users.

    I followed the documentation on the official website (https://wpdatatables.com/documentation/front-end-editing/allowing-users-to-edit-only-their-own-data/) and set the editor role in the editing tab to "Administrator". However I am not allowed to enter the user ID column into the table and also other fields. If I don't input the user ID by myself, I guess the plugin couldn't let the users only seeing their own data right?


    What should I do in this case? Thanks.

  • [deleted] replied

    Hi Wilson,

    • If I don't input the user ID by myself, I guess the plugin couldn't let the users only seeing their own data right?

    Yes that is right. Plugin uses information from column with ID's to compare it with current user ID.

    Only option would be to still add ID column but make it hidden. That way it will work for the frontend users but they will not be able to see it