- // Test permissions
- // Respect the export feature setting for all other /cal pages if it's not the own profile
- if ((local_user() !== $owner_uid) && !Feature::isEnabled($owner_uid, "export_calendar")) {
- notice(DI::l10n()->t('Permission denied.') . EOL);
- DI::baseUrl()->redirect('cal/' . $nick);
- }
-