Skip to content

Commit ffd9f49

Browse files
ArtificialOwlbackportbot[bot]
authored andcommitted
disable federated circles
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent 89a90c6 commit ffd9f49

File tree

3 files changed

+13
-33
lines changed

3 files changed

+13
-33
lines changed

js/admin.js

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,18 @@ var elements = {
3333
// test_async_wait: null,
3434
members_limit: null,
3535
allow_linked_groups: null,
36-
allow_federated_circles: null,
3736
skip_invitation_to_closed_circles: null
3837
};
3938

4039

41-
$(document).ready(function () {
40+
$(document).ready(function() {
4241

4342
// elements.test_async_start = $('#test_async_start');
4443
// elements.test_async_reset = $('#test_async_reset');
4544
// elements.test_async_wait = $('#test_async_wait');
4645
// elements.test_async_result = $('#test_async_result');
4746
elements.members_limit = $('#members_limit');
4847
elements.allow_linked_groups = $('#allow_linked_groups');
49-
elements.allow_federated_circles = $('#allow_federated_circles');
5048
elements.skip_invitation_to_closed_circles = $('#skip_invitation_to_closed_circles');
5149

5250
// elements.test_async_wait.hide().on('click', function () {
@@ -71,59 +69,51 @@ $(document).ready(function () {
7169
// });
7270
// });
7371

74-
elements.members_limit.on('change', function () {
72+
elements.members_limit.on('change', function() {
7573
saveChange();
7674
});
7775

78-
elements.allow_linked_groups.on('change', function () {
76+
elements.allow_linked_groups.on('change', function() {
7977
saveChange();
8078
});
8179

82-
83-
elements.allow_federated_circles.on('change', function () {
80+
elements.skip_invitation_to_closed_circles.on('change', function() {
8481
saveChange();
8582
});
8683

87-
elements.skip_invitation_to_closed_circles.on('change', function () {
88-
saveChange();
89-
});
90-
91-
saveChange = function () {
84+
saveChange = function() {
9285
$.ajax({
9386
method: 'POST',
9487
url: OC.generateUrl('/apps/circles/admin/settings'),
9588
data: {
9689
members_limit: elements.members_limit.val(),
9790
allow_linked_groups: (elements.allow_linked_groups.is(
9891
':checked')) ? '1' : '0',
99-
allow_federated_circles: (elements.allow_federated_circles.is(
100-
':checked')) ? '1' : '0',
10192
skip_invitation_to_closed_circles: (elements.skip_invitation_to_closed_circles.is(
10293
':checked')) ? '1' : '0'
10394
}
104-
}).done(function (res) {
95+
}).done(function(res) {
10596
elements.members_limit.val(res.membersLimit);
10697
elements.allow_linked_groups.prop('checked', (res.allowLinkedGroups === '1'));
107-
elements.allow_federated_circles.prop('checked', (res.allowFederatedCircles === '1'));
10898
elements.skip_invitation_to_closed_circles.prop('checked', (res.skipInvitationStep === '1'));
10999
});
110100
};
111101

112-
updateTestAsync = function () {
102+
updateTestAsync = function() {
113103
self.refreshResult();
114104
};
115105

116106

117-
refreshResult = function () {
107+
refreshResult = function() {
118108
$.ajax({
119109
method: 'GET',
120110
url: OC.generateUrl('/apps/circles/admin/testAsync')
121-
}).done(function (res) {
111+
}).done(function(res) {
122112
self.displayTestAsync(res);
123113
});
124114
};
125115

126-
displayTestAsync = function (res) {
116+
displayTestAsync = function(res) {
127117
// displayTestAsyncResult(res);
128118
// displayTestAsyncNewTest(res);
129119
// displayTestAsyncReset(res);
@@ -185,12 +175,10 @@ $(document).ready(function () {
185175
method: 'GET',
186176
url: OC.generateUrl('/apps/circles/admin/settings'),
187177
data: {}
188-
}).done(function (res) {
178+
}).done(function(res) {
189179
elements.members_limit.val(res.membersLimit);
190180
elements.allow_linked_groups.prop('checked', (res.allowLinkedGroups === '1'));
191-
elements.allow_federated_circles.prop('checked', (res.allowFederatedCircles === '1'));
192181
elements.skip_invitation_to_closed_circles.prop('checked', (res.skipInvitationStep === '1'));
193-
194182
});
195183
//
196184
// var timerTestAsync = setInterval(function () {

lib/Controller/SettingsController.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,14 @@ public function getSettings() {
4747

4848

4949
public function setSettings(
50-
$members_limit, $allow_linked_groups, $allow_federated_circles, $skip_invitation_to_closed_circles
50+
$members_limit, $allow_linked_groups, $skip_invitation_to_closed_circles
5151
) {
5252
$this->configService->setAppValue(
5353
ConfigService::CIRCLES_MEMBERS_LIMIT, $members_limit
5454
);
5555
$this->configService->setAppValue(
5656
ConfigService::CIRCLES_ALLOW_LINKED_GROUPS, $allow_linked_groups
5757
);
58-
$this->configService->setAppValue(
59-
ConfigService::CIRCLES_ALLOW_FEDERATED_CIRCLES, $allow_federated_circles
60-
);
6158
$this->configService->setAppValue(
6259
ConfigService::CIRCLES_SKIP_INVITATION_STEP, $skip_invitation_to_closed_circles
6360
);

templates/settings.admin.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@
2626
<?php
2727
}
2828
?>
29-
<p>
30-
<input type="checkbox" value="1" id="allow_federated_circles" class="checkbox"/>
31-
<label for="allow_federated_circles"><?php p($l->t('Allow federated circles')); ?></label>
32-
<em><?php p($l->t('Circles from different Nextclouds can be linked together.')); ?></em>
33-
</p>
34-
<p>
29+
<p>
3530
<input type="checkbox" value="1" id="skip_invitation_to_closed_circles" class="checkbox"/>
3631
<label for="skip_invitation_to_closed_circles"><?php p($l->t('Skip invitation step to closed circles')); ?></label>
3732
<em><?php p($l->t('Moderators can add member to closed circles without user approval.')); ?></em>

0 commit comments

Comments
 (0)