cal export && public calendar - even better permissions testing
This commit is contained in:
parent
8cc5dd35e8
commit
2cac69ca86
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue