Hi,
For security reasons I have to disable(in permissions) a user from editing an entry after it is created, but I would like to add a button or a way so the user can add a time to an entry later.
Hope it makes sense.
Editing an entry without permissions
Re: Editing an entry without permissions
Do you know how can that be achieved?
Re: Editing an entry without permissions
Hi,
maybe this post here can help you:
viewtopic.php?f=11&t=3289&p=11389#p11389
I have added a button for "locking" a record so the user cannot edit any more. In this state there is a button for "editing" that records.
Technically speaking I'm just changing to record owner to "admin" (user cannot edit any more) or to current user (user can edit). It is important to change the permissions on that table to grant editing rights to "owner", only.
You can use the built-in function set_record_owner($tablename, $primaryKey, $newOwnerMemberID) to toggle the ownership between different users.
maybe this post here can help you:
viewtopic.php?f=11&t=3289&p=11389#p11389
I have added a button for "locking" a record so the user cannot edit any more. In this state there is a button for "editing" that records.
Technically speaking I'm just changing to record owner to "admin" (user cannot edit any more) or to current user (user can edit). It is important to change the permissions on that table to grant editing rights to "owner", only.
You can use the built-in function set_record_owner($tablename, $primaryKey, $newOwnerMemberID) to toggle the ownership between different users.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
Re: Editing an entry without permissions
Thanks for the reply!
I'll try that.
I'll try that.