mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:29:30 +08:00
FIX: Allow group members to freely exit group option incorrectly disabled.
https://meta.discourse.org/t/cannot-check-allow-members-to-leave-group-freely-when-group-is-configured-to-allow-users-to-send-membership-requests-to-group-owners/73400
This commit is contained in:
parent
4e618aa08f
commit
abdfac9cb5
|
@ -33,8 +33,7 @@
|
|||
<label>
|
||||
{{input type='checkbox'
|
||||
checked=model.public_exit
|
||||
class="group-edit-public-exit"
|
||||
disabled=model.allow_membership_requests}}
|
||||
class="group-edit-public-exit"}}
|
||||
|
||||
{{i18n 'groups.public_exit'}}
|
||||
</label>
|
||||
|
|
|
@ -43,6 +43,11 @@ QUnit.test("Editing group", assert => {
|
|||
'it should disable group public admission input'
|
||||
);
|
||||
|
||||
assert.ok(
|
||||
find('.group-edit-public-exit[disabled]').length === 0,
|
||||
'it should not disable group public exit input'
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
find('.group-edit-membership-request-template').length, 1,
|
||||
'it should display the membership request template field'
|
||||
|
|
|
@ -9,7 +9,7 @@ export default {
|
|||
"alias_level":99,
|
||||
"visible":true,
|
||||
"public_admission":true,
|
||||
"public_exit":true,
|
||||
"public_exit":false,
|
||||
"flair_url": 'fa-adjust',
|
||||
"is_group_owner":true,
|
||||
"mentionable":true,
|
||||
|
|
Loading…
Reference in New Issue
Block a user