• Resolved jayres27

    (@jayres27)


    Hi there,

    First of all, congrats for the plugin.

    I only have one issue: is it possible that each user can only see their own records? Of course that admins can see and/or edit them all.

    Thanks in advance.

    beste regards

    • This topic was modified 2 years, 2 months ago by jayres27. Reason: The post was marked as spam, don't know why!
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author giuliopanda

    (@giuliopanda)

    Hello, yes you can do it, I’m writing you a little tutorial:

    1. Create a new form for a new test table and add a user_id field.
    2. As field type select Author, in this way it will be populated with the id of the user who creates the record. Save.
    3. In the settings under filters add a new filter. The field will be tes.user_id . The operator = (Equal to) and after it writes as value [^user.id]. Then select required.
    4. always on the same page by setting a little higher up verify that users can access this new menu item. In the admin sidebar menu select “show in admin menu” and enter the permissions of the users whose list you want to view.
      Save.

    Note that the plugin is only visible for administrators, while other users who need to work in administration will see the menu item created for the single form.

    The filters set on the settings are not applied in “browse the list” therefore the administrators will see the complete list, while the other users will be able to see and modify only their personal data.

    If you need to display unfiltered frontend data from users, you will need to create a new form and select the test table. In Settings > Admin Sidebar Menu uncheck “Sho in admin menu” so that other users don’t see it and can’t edit the list and you can show in the frontend an unfiltered list by author.

    I hope I was clear in the explanations. If you have any suggestions, recommendations, or find any bugs, please let me know.

    Plugin Author giuliopanda

    (@giuliopanda)

    I mark as solved the problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can users see only their own records?’ is closed to new replies.