pub calendar - permission clean up and docu
This commit is contained in:
parent
111f77ac64
commit
e352458ef0
2 changed files with 21 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue