Editing a block where only the user who added the block can edit it?
Permalink
“Can it be done? if on the same page multiusers add blocks but they can only edit there block that they created?”
As Remo said, should be not to big a deal...
Maybe you can refine the core content block. Attach a new field in the database to store the user that created the block.
Set a condition in the edit.php of the block, so that edit possibility is given only when the current username corresponds to the stored author of that specific block.
That would be possible for a single block type without too much work I guess. But Remo has by far more knowledge on stuff like this, it´s just an idea!
Greetings,
Stefan
Maybe you can refine the core content block. Attach a new field in the database to store the user that created the block.
Set a condition in the edit.php of the block, so that edit possibility is given only when the current username corresponds to the stored author of that specific block.
That would be possible for a single block type without too much work I guess. But Remo has by far more knowledge on stuff like this, it´s just an idea!
Greetings,
Stefan
This would be the basis of what you describe. I'm not sure if you can do the exact thing you're looking for without a few lines of code. But the advanced permission mode allows you to specify permissions on the right level, you probably only need a script which sets these permissions automatically.
A small package which extends the on_page_version_approve event and assigns the proper permissions. Looks doable to me!