pub calendar - permission clean up and docu

This commit is contained in:
rabuzarus 2016-06-23 10:07:13 +02:00
commit e352458ef0
2 changed files with 21 additions and 7 deletions

View file

@ -303,7 +303,8 @@ function cal_content(&$a) {
}
// Test permissions
if( ((local_user() !== $owner_uid)) && !(feature_enabled($owner_uid, "export_calendar"))) {
// Respect the export feature setting for all other /cal pages if it's not the own profile
if( ((local_user() !== $owner_uid)) && ! feature_enabled($owner_uid, "export_calendar")) {
notice( t('Permission denied.') . EOL);
return;
}