Listing External Calendars is part of the Administration menu and should be restricted to admins

this could be made configurable, or lumped in with
$c->restrict_setup_to_admin, but non-admins only get here by manually
entering the URL...
This commit is contained in:
Florian Schlichting 2021-02-09 01:37:31 +08:00
parent 202e2edd5a
commit e92e981542

View File

@ -1,6 +1,10 @@
<?php
param_to_global( 'external_active', '([tf])', 'active' );
if ( !$session->AllowedTo("Admin" ) ) {
@ob_flush(); exit(0);
}
$browser = new Browser(translate('External Calendars'));
$browser->AddColumn( 'collection_id', translate('ID'), 'right', '##collection_link##' );