Hide flag manage buttons condition

Greetings all; Thank you in advance.

I am looking for guidance/how-to:

On targetting current logged in user with Flag owner and Target user of flag.

ie If current logged in user = Target of flag Then in Review menu Hide manage flag buttons & Hide Take action buttons on Post menu.

If current logged in user = Owner of Flag do as above.

Display message Sorry you are not permitted to Resolve this Flag.


While it is true & can be said to choose mods & cat mods wisely it can be temping to validate/reject flags when passions run wild. This imho would remove the temptation & help ensure integrity. At least in my per use scenario.

Thank for taking the time to read over my request.