I have a GCrud set up where I need to allow the user to edit some, but not all, rows (depends on login permissions).
Ideally, I'd like to be able to programatically turn on or turn off the buttons entirely, but I found no way to do so.
I thought that maybe "callback_before_update" would let me at least display a "you can't do that" message and go back, but it doesn't seem like there's any way to cancel the update from that callback.
I'd rather not have to re-write the whole update functionality using "callback_update".
Is there an easy fix?
Thanks.