Update applications/vanilla/controllers/class.postcontroller.php

Added permissions checking to Discussion method. This is a fix for Issue #1512 (https://github.com/vanillaforums/Garden/issues/1512)