Editor: How can I implement a row based update policy?

Editor: How can I implement a row based update policy?

CRogozaCRogoza Posts: 5Questions: 2Answers: 0
edited March 2020 in Free community support

Greetings!

My task: I have a table where users can insert rows (results) and update/delete them as long as he wants. But as soon as an admin has verified the result, the user must not edit it again.
For each row there's a field "update_power" (int) and the user may only update this row when his own power (stored in session) is equal or greater.
When an admin verfies the result the power is raised to admin power.

Thanks for you suggestions!

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    You could do something like this - this stops the user editing the Office field if it is London. It uses preOpen which can cancel the current edit.

    Colin

  • CRogozaCRogoza Posts: 5Questions: 2Answers: 0

    I'm sorry! I forgot to mention that this should happen server-side within the php. My fault :/

    I can't relay on client-side security.

  • colincolin Posts: 15,237Questions: 1Answers: 2,599
    Answer ✓

    In that case, the best bet would be a server-side validator,

    Colin

  • CRogozaCRogoza Posts: 5Questions: 2Answers: 0

    Thank you!

This discussion has been closed.