discourse/test/javascripts/fixtures/session-fixtures.js
jbrw aa1fc01307
FEATURE - Moderators can create and manage groups (#10432)
Enabling the moderators_manage_categories_and_groups site setting will allow moderator users to create/manage groups.

* show New Group form to moderators

* Allow moderators to update groups and read logs, where appropriate

* Rename site setting from create -> manage

* improved tests

* Migration should rename old log entries

* Log group changes, even if those changes mean you can no longer see the group

* Slight reshuffle

* RouteTo /g if they no longer have permissions to view group
2020-08-19 10:41:40 -04:00

38 lines
1.0 KiB
JavaScript

export default {
"/session/current.json": {
current_user: {
id: 19,
username: "eviltrout",
uploaded_avatar_id: 5275,
avatar_template: "/user_avatar/localhost/eviltrout/{size}/5275.png",
name: "Robin Ward",
unread_notifications: 0,
unread_private_messages: 0,
unread_high_priority_notifications: 0,
admin: true,
notification_channel_position: null,
site_flagged_posts_count: 1,
moderator: true,
staff: true,
can_create_group: true,
title: "co-founder",
reply_count: 859,
topic_count: 36,
enable_quoting: true,
external_links_in_new_tab: false,
dynamic_favicon: true,
trust_level: 4,
can_edit: true,
can_invite_to_forum: true,
should_be_redirected_to_top: false,
custom_fields: {},
muted_category_ids: [],
dismissed_banner_key: null,
akismet_review_count: 0,
title_count_mode: "notifications",
timezone: "Australia/Brisbane",
skip_new_user_tips: false
}
}
};