Forums

Allow edit record only Joomla USER that created record

Elita 13 May, 2020
Hello, to ALL CF and CCv6 fans community!

Can anybody suggest of how to create permissions to restrict users to ONLY edit records they created in CCv6 table?
I have a DB table where user_id is saved for each Submission/record.

What would be the steps? Should I filter records for each user_id, put in separate table (e.g. MY TABLE - >>> calls user_id) and then edit or there is another approach?
Just give me the directions, please.

Thank you in advance -
ELita
GreyHead 14 May, 2020
1 Likes
Hi Elita,

I'd probably use CSS to disable or hide the Edit links for other users in the listing, and I'd add a second check in the Edit action to check the user is allowed to edit this record.

Bob
Max_admin 15 May, 2020
1 Likes
in v7 you can control all views and actions with the ACL behavior, which has "owner id" value, when passed and if the ACL profile has "owner" allowed then it will allow that user only along with the other allowed groups in the ACL profile!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.