I would like to mention that the tutorial not allow moderators to post has a major flaw. The moderator can simply disable javascript (or that part of the code using browser plugins) to proceed to delete posts. Such permissions should be handled internally through PHP and not javascript. Either that, or it can be paired with a method to not allow users to visit the website without enabling javascript. Cheers.
Link to the tutorial: https://help.forumotion.com/t155267-allow-only-administrators-to-delete-a-topic#1067499
Link to the tutorial: https://help.forumotion.com/t155267-allow-only-administrators-to-delete-a-topic#1067499