Add permissions for editing entities depending on their moderation state