mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:13:45 +08:00
98fc614162
Automatically add `moderators` and `admins` auto groups to specific site settings. In the new group-based permissions systems, we just want to check the user’s groups since it more accurately reflects reality Affected settings: - tag_topic_allowed_groups - create_tag_allowed_groups - send_email_messages_allowed_groups - personal_message_enabled_groups - here_mention_allowed_groups - approve_unless_allowed_groups - approve_new_topics_unless_allowed_groups - skip_review_media_groups - email_in_allowed_groups - create_topic_allowed_groups - edit_wiki_post_allowed_groups - edit_post_allowed_groups - self_wiki_allowed_groups - flag_post_allowed_groups - post_links_allowed_groups - embedded_media_post_allowed_groups - profile_background_allowed_groups - user_card_background_allowed_groups - invite_allowed_groups - ignore_allowed_groups - user_api_key_allowed_groups
25 lines
664 B
Handlebars
25 lines
664 B
Handlebars
{{#if this.readOnly}}
|
|
<button
|
|
class="btn btn-default disabled"
|
|
title={{I18n "admin.site_settings.mandatory_group"}}
|
|
>{{this.itemName}}</button>
|
|
{{else}}
|
|
<button
|
|
{{on "click" (fn this.selectKit.deselect this.item)}}
|
|
aria-label={{i18n "select_kit.delete_item" name=this.itemName}}
|
|
data-value={{this.itemValue}}
|
|
data-name={{this.itemName}}
|
|
type="button"
|
|
id="{{this.id}}-choice"
|
|
class="btn btn-default selected-choice {{this.extraClass}}"
|
|
>
|
|
{{d-icon "times"}}
|
|
{{#if (has-block)}}
|
|
{{yield}}
|
|
{{else}}
|
|
<span class="d-button-label">
|
|
{{this.itemName}}
|
|
</span>
|
|
{{/if}}
|
|
</button>
|
|
{{/if}} |