cal export && public calendar - even better permissions testing

This commit is contained in:
rabuzarus 2016-06-22 13:50:47 +02:00
commit 2cac69ca86
2 changed files with 8 additions and 2 deletions

View file

@ -302,7 +302,8 @@ function cal_content(&$a) {
return;
}
if( !(local_user()) && !(feature_enabled($owner_uid, "export_calendar"))) {
// Test permissions
if( ((local_user() !== $owner_uid)) && !(feature_enabled($owner_uid, "export_calendar"))) {
notice( t('Permission denied.') . EOL);
return;
}