Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Users see "Commenting not allowed" even when it is allowed

edited August 2011 in Vanilla 2.0 - 2.8
Hello I have had this problem with Vanilla where "members" cannot comment in a category when I specifically allow commenting. It started after an update a couple months ago, and I am struggling to fix it now.

Here are some things I tried.

1. Making a new category
2. Setting category to default permissions
3. Setting category to custom permissions and selecting all the member permissions for that category.
4. Deleting all .ini files in cache.
5. Deleting the JunctionIDs in GDN_Permission that correspond to the category's PermissionCategoryID in GDN_Category... and the trying to recreate them by creating the custom permission again.


Here is a dump of $Session->GetPermissions() as a member viewing a discussion in Category 2. It shows here that there is no 2 in [Vanilla.Comments.Add], but when I force display a comment box with "echo $this->FetchView('comment', 'post');" I can post a comment just fine.

Array ( [0] => Garden.SignIn.Allow [1] => Garden.Activity.View [2] => Garden.Profiles.View [Vanilla.Discussions.View] => Array ( [0] => 1 [1] => 3 [2] => 12 ) [Vanilla.Discussions.Add] => Array ( [0] => 1 [1] => 12 ) [Vanilla.Comments.Add] => Array ( [0] => 1 [1] => 3 [2] => 5 [3] => 7 [4] => 10 ) )

Does anyone have any ideas or suggestions on how to fix this?
Tagged:
Sign In or Register to comment.