Group moderators edit category description (PR #10292)

GitHub

I didn’t see any JS changed but the tests were changed?

https://github.com/discourse/discourse/blob/032703e6e21df3754a429f839e364a4396d8371b/lib/guardian/post_guardian.rb#L164-L166

An extra condition was added to the can_edit_post? method, which ends up being used by the PostSerializer. So I added an extra assertion here to ensure the button was being rendered as expected, based on the value from the serializer.

That is cool, just noting that it worked before this commit.

Absolutely - just making sure I didn’t introduce any regressions.

      fab!(:category) { Fabricate(:category, reviewable_by_group_id: group_user.group.id, topic: topic) }
        topic.update!(category: category)
        post.update!(topic: topic)
        topic.update!(category: second_category)

@jbrw Some minor suggestions but the PR looks good to me :+1: