1
0
Fork 0

Move export public calendar additional feature to core

This commit is contained in:
Hypolite Petovan 2020-07-12 23:08:38 -04:00
commit 0816e0330f
3 changed files with 0 additions and 24 deletions

View file

@ -292,13 +292,6 @@ function cal_content(App $a)
return;
}
// 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);
}
// Get the export data by uid
$evexport = Event::exportListByUserId($owner_uid, $format);