mirror of https://github.com/xwiki-labs/cryptpad
enable admin option to opt-in to aggregate statistics
This commit is contained in:
parent
9098af75ab
commit
fede73efb1
|
@ -73,9 +73,11 @@ Stats.instanceData = function (Env) {
|
||||||
//data.archiveRetentionTime = Env.archiveRetentionTime,
|
//data.archiveRetentionTime = Env.archiveRetentionTime,
|
||||||
}
|
}
|
||||||
|
|
||||||
// we won't consider instances for public listings
|
// Admins can opt-in to providing more detailed information about the extent of the instance's usage
|
||||||
// unless they opt to provide more info about themselves
|
if (!Env.provideAggregateStatistics) {
|
||||||
if (!Env.provideAggregateStatistics) { return data; }
|
// check how many instances provide stats before we put more work into it
|
||||||
|
data.providesAggregateStatistics = true;
|
||||||
|
}
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|
|
@ -105,7 +105,7 @@ define([
|
||||||
'cp-admin-update-available',
|
'cp-admin-update-available',
|
||||||
'cp-admin-checkup',
|
'cp-admin-checkup',
|
||||||
'cp-admin-block-daily-check',
|
'cp-admin-block-daily-check',
|
||||||
//'cp-admin-provide-aggregate-statistics',
|
'cp-admin-provide-aggregate-statistics',
|
||||||
'cp-admin-list-my-instance',
|
'cp-admin-list-my-instance',
|
||||||
|
|
||||||
'cp-admin-consent-to-contact',
|
'cp-admin-consent-to-contact',
|
||||||
|
|
Loading…
Reference in New Issue