We would to implement some user permissions in your plugin. The idea is that we have custom user roles and we would like to implement a few things: - Give permission to user X to edit table Y - Give access to the plugin for all the users, so it is visible in the left menu(default WP menu) - Whenever you do not have access to a table, preferably you don't have it in the list of tables so you do not get confusions.
Let me know how can I implement the needed changes so I can get the results needed.
Our company is located in Serbia and our working time is from 09:00 to 16:00 CET, business days.
From version 2.1, if you use some custom roles from other plugins (like it is S2Member, User Role Editor or any other), those roles will be available in the "Editor roles" option under the EDITING tab in the table settings.
So, with one of these plugins you can add custom user roles, which you can assign to each table. I believe all tables must be visible in the table list, so hiding them based on the user assigned to each table is probably impossible. I say "probably", because one of these plugins can have settings which will allow you to hide the tables from view in wpDataTables menu.
If you put a table assigned to user1 on a page everyone will be able to see it, but only user1 will be able to edit it. To change this, so only user1 can view and edit the table, you can implement the "Users can see and edit only own data" feature. You can take a look at the video provided in the link, to see how you can view all tables as an administrator also.
Thanks for getting back to us. I think that you've misunderstood what we meant with the questions. Using the guide you sent us, we are able to restrict the user to edit its own content, but other users can still add data to the table. This is what we want to prevent, if a user gets access to the table, it should be that he is the only one that can change this table. Is there an inbuilt functionality in your system for this?
Moreover, the editor roles works only in the front-end of the website, and we want to completely restrict the access to the tables for given users.
You're correct, enabling "Users see and edit only own data" allows all users to enter new rows, and unfortunately, there are no built-in options in our plugin to limit that.
The User Role Editor plugin free version does allow limiting the front-end, but the Pro version allows back-end features as well, where you can limit users from accessing certain menus, tables, even drop-downs.
Do you happen to know which hooks this plugin is using? Since we have developed our own custom roles, we wouldn't like to use a separate plugin for this ?
I am sorry to inform you that, unfortunately we don't have a specific hook for that, but you're welcome to take a look at our filters and actions, and see if maybe there's something there that can help you achieve the end goal.
Hey there,
We would to implement some user permissions in your plugin. The idea is that we have custom user roles and we would like to implement a few things:
- Give permission to user X to edit table Y
- Give access to the plugin for all the users, so it is visible in the left menu(default WP menu)
- Whenever you do not have access to a table, preferably you don't have it in the list of tables so you do not get confusions.
Let me know how can I implement the needed changes so I can get the results needed.
Thanks in advance !
Best Regards,
Site.nu Team
Hey guys,
We're still in need of a answer, is there a way you can provide me with one today?
Kind regards,
Site.nu Team
Hello wildeamsterdam.
Thank you for your purchase.
Sorry for late response.
Our company is located in Serbia and our working time is from 09:00 to 16:00 CET, business days.
From version 2.1, if you use some custom roles from other plugins (like it is S2Member, User Role Editor or any other), those roles will be available in the "Editor roles" option under the EDITING tab in the table settings.
So, with one of these plugins you can add custom user roles, which you can assign to each table. I believe all tables must be visible in the table list, so hiding them based on the user assigned to each table is probably impossible. I say "probably", because one of these plugins can have settings which will allow you to hide the tables from view in wpDataTables menu.
If you put a table assigned to user1 on a page everyone will be able to see it, but only user1 will be able to edit it. To change this, so only user1 can view and edit the table, you can implement the "Users can see and edit only own data" feature. You can take a look at the video provided in the link, to see how you can view all tables as an administrator also.
I hope this helps. Please let me know.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hey Aleksandar,
Thanks for getting back to us. I think that you've misunderstood what we meant with the questions. Using the guide you sent us, we are able to restrict the user to edit its own content, but other users can still add data to the table. This is what we want to prevent, if a user gets access to the table, it should be that he is the only one that can change this table. Is there an inbuilt functionality in your system for this?
Moreover, the editor roles works only in the front-end of the website, and we want to completely restrict the access to the tables for given users.
Looking forward to your answer !
Best Regards,
Site.nu Team
Hello again Site.nu Team.
You're correct, enabling "Users see and edit only own data" allows all users to enter new rows, and unfortunately, there are no built-in options in our plugin to limit that.
The User Role Editor plugin free version does allow limiting the front-end, but the Pro version allows back-end features as well, where you can limit users from accessing certain menus, tables, even drop-downs.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Dear Aleksandar,
Do you happen to know which hooks this plugin is using? Since we have developed our own custom roles, we wouldn't like to use a separate plugin for this ?
Best regards,
Site.nu Team
Hi Site.nu Team.
I am sorry to inform you that, unfortunately we don't have a specific hook for that, but you're welcome to take a look at our filters and actions, and see if maybe there's something there that can help you achieve the end goal.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables