Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hello,

I know this is not possible with Couch directly, but I hope someone here can help. I want to know if there is a way, using the kfunctions file, to store a list of admin user IDs and if a logged-in admin's ID is in that list, the CMS should not let them make changes to the database, such as creating, editing, saving, or deleting pages in any templates.

Best Regards!
Hi,

The closest that we currently have available is this -
viewtopic.php?f=8&t=10715

Would it help?
Hello KK, thank you for the reply.

I am already using the simple-access-plugin for other admin accounts, and it works great for hiding specific templates from certain admins.

What I need is a bit different. I need a global solution that applies to any template in Couch where information is saved (editing or creating) or deleted.

I was hoping there might be hooks available to activate on save or delete, then within that function that activates, it will check the current k_user_id against a list of IDs stored in a PHP array (array is manually maintained) before allowing any saving, creating, or deleting of pages. If the k_user_id is in the array, it would raise an error similar to an invalid editable being saved saying "You do not have permission to complete this action".

The reason is that we have some team members who are only supposed to review content and report back. However, the bosses do not want these admins to be able to make any changes, delete, or add new content.

Best regards!
Blutbaden wrote: Hello,

I know this is not possible with Couch directly, but I hope someone here can help. I want to know if there is a way, using the kfunctions file, to store a list of admin user IDs and if a logged-in admin's ID is in that list, the CMS should not let them make changes to the database, such as creating, editing, saving, or deleting pages in any templates.

Best Regards!


It is possible and I have a proof of concept somewhere in my archives from a few years back. However it doesn't seem necessary in your use-case. Make a few online frontend pages, let those reviewers login as users, not admins, and list curated information to review and a form to report. This is doable with Couch directly.

Proposition does not involve any tinkering with addons and certainly requires fewer expensive man-hours over crafting a full-fledged solution (which must include KCFinder restrictions to not rename/delete uploaded files!).
4 posts Page 1 of 1
cron