Hiding the "Start a New Discussion" button
How can I hide the "Start a New Discussion" button in the sidebar panel for people who don't have permissions to start a new discussion? Right now it's visible and is causing confusion when a user clicks on it and gets a permission denied error. Thanks!
0
Comments
if ($Session->CheckPermission('Vanilla.Comments.Add', TRUE, 'Category', $CategoryID))echo Anchor(T('Start a New Discussion'), '/post/discussion'.(array_key_exists('CategoryID', $Data) ? '/'.$Data['CategoryID'] : ''), 'BigButton NewDiscussion');
we had the same issue too
we have a read-only members(females) on our forum(private one), and needed to hide post comment form and new discussion button for users under their role