mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Users can't request to join group due to alias level restriction.
https://meta.discourse.org/t/request-to-join-group-not-working/62371
This commit is contained in:
@@ -18,24 +18,6 @@ test('canJoinGroup', function() {
|
||||
equal(this.subject().get("canJoinGroup"), true, "can't join group when not logged in");
|
||||
});
|
||||
|
||||
test('canRequestMembership', function() {
|
||||
this.subject().setProperties({
|
||||
model: { allow_membership_requests: false, alias_level: 0 }
|
||||
});
|
||||
|
||||
equal(this.subject().get('canRequestMembership'), false);
|
||||
|
||||
this.subject().setProperties({
|
||||
currentUser: currentUser(), model: { allow_membership_requests: true, alias_level: 99 }
|
||||
});
|
||||
|
||||
equal(this.subject().get('canRequestMembership'), true);
|
||||
|
||||
this.subject().set("model.alias_level", 0);
|
||||
|
||||
equal(this.subject().get('canRequestMembership'), false);
|
||||
});
|
||||
|
||||
test('userIsGroupUser', function() {
|
||||
this.subject().setProperties({
|
||||
model: { is_group_user: true }
|
||||
|
||||
Reference in New Issue
Block a user