* FEATURE: Allow Category Group Moderators to edit topic titles Adds category group moderators to the topic guardian’s `can_edit` method. The value of `can_edit` is returned by the topic view serializer, and this value determines whether the current user can edit the title/category/tags of the topic directly (which category group moderators could already do by editing the first post of a topic). Note that the value of `can_edit` is now always returned by the topic view serializer (ie, for both true and false values) to cover the case where a topic is moved out of a category that a category group moderator has permissions on, so that when the topic is reloaded the UI picks up that `can_edit` is now false, and thus the edit icon should no longer be displayed. * DEV: Add a comment explaining why `can_edit` is always returned |
||
|---|---|---|
| .. | ||
| admin_plugin_serializer_spec.rb | ||
| admin_user_list_serializer_spec.rb | ||
| basic_group_serializer_spec.rb | ||
| basic_group_user_serializer_spec.rb | ||
| basic_post_serializer_spec.rb | ||
| basic_user_serializer_spec.rb | ||
| category_detailed_serializer_spec.rb | ||
| category_serializer_spec.rb | ||
| category_upload_serializer_spec.rb | ||
| current_user_serializer_spec.rb | ||
| group_show_serializer_spec.rb | ||
| new_post_result_serializer_spec.rb | ||
| notification_serializer_spec.rb | ||
| post_revision_serializer_spec.rb | ||
| post_serializer_spec.rb | ||
| reviewable_flagged_post_serializer_spec.rb | ||
| reviewable_queued_post_serializer_spec.rb | ||
| reviewable_serializer_spec.rb | ||
| reviewable_user_serializer_spec.rb | ||
| single_sign_on_record_serializer_spec.rb | ||
| site_serializer_spec.rb | ||
| suggested_topic_serializer_spec.rb | ||
| tag_group_serializer_spec.rb | ||
| theme_serializer_spec.rb | ||
| topic_link_serializer_spec.rb | ||
| topic_list_item_serializer_spec.rb | ||
| topic_list_serializer_spec.rb | ||
| topic_view_posts_serializer_spec.rb | ||
| topic_view_serializer_spec.rb | ||
| upload_serializer_spec.rb | ||
| user_auth_token_serializer_spec.rb | ||
| user_bookmark_serializer_spec.rb | ||
| user_card_serializer_spec.rb | ||
| user_serializer_spec.rb | ||
| user_summary_serializer_spec.rb | ||
| web_hook_post_serializer_spec.rb | ||
| web_hook_topic_view_serializer_spec.rb | ||
| web_hook_user_serializer_spec.rb | ||
| wizard_serializer_spec.rb | ||