Commit 8889ef04 authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Add site option staffstats



Allows administrators to let institution staff view statistics for
their institution

Change-Id: I6da1da44e91494f943cc5f3f9197cf48f769d975
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent 049c51b0
......@@ -190,6 +190,13 @@ $siteoptionform = array(
'defaultvalue' => get_config('staffreports'),
'disabled' => in_array('staffreports', $OVERRIDDEN),
),
'staffstats' => array(
'type' => 'checkbox',
'title' => get_string('staffuserstats', 'admin'),
'description' => get_string('staffuserstatsdescription', 'admin'),
'defaultvalue' => get_config('staffstats'),
'disabled' => in_array('staffstats', $OVERRIDDEN),
),
),
),
'searchsettings' => array(
......@@ -615,7 +622,7 @@ function siteoptions_submit(Pieform $form, $values) {
'proxyaddress', 'proxyauthmodel', 'proxyauthcredentials', 'smtphosts', 'smtpport', 'smtpuser', 'smtppass', 'smtpsecure',
'noreplyaddress', 'defaultnotificationmethod', 'homepageinfo', 'showonlineuserssideblock', 'onlineuserssideblockmaxusers',
'registerterms', 'allowmobileuploads', 'creategroups', 'createpublicgroups', 'allowgroupcategories', 'wysiwyg',
'staffreports',
'staffreports', 'staffstats',
);
// if public views are disabled, sitemap generation must also be disabled.
......
......@@ -357,6 +357,8 @@ $string['spamhaus'] = 'Enable Spamhaus URL blacklist';
$string['spamhausdescription'] = 'If enabled, URLs will be checked against the Spamhaus DNSBL';
$string['staffuserreports'] = 'Staff report access';
$string['staffuserreportsdescription'] = 'If enabled, site and institution staff will have access to the reports page for users in their institutions. This page is normally restricted to administrators, and lists extra user information including page access lists.';
$string['staffuserstats'] = 'Staff statistics access';
$string['staffuserstatsdescription'] = 'If enabled, institution staff will have access to the statistics page for users in their institutions. This page is normally restricted to administrators and site staff.';
$string['surbl'] = 'Enable SURBL URL blacklist';
$string['surbldescription'] = 'If enabled, URLs will be checked against the SURBL DNSBL';
$string['disableexternalresources'] = 'Disable external resources in user HTML';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment