check perms on ical attachments
This commit is contained in:
parent
8d66fbccfa
commit
863a979754
@ -312,9 +312,12 @@ function events_content(&$a) {
|
|||||||
|
|
||||||
|
|
||||||
if($mode === 'ical') {
|
if($mode === 'ical') {
|
||||||
$r = q("select * from event where event_hash = '%s' and uid = %d limit 1",
|
|
||||||
dbesc($event_id),
|
require_once('include/security.php');
|
||||||
intval(local_channel())
|
$sql_extra = permissions_sql(local_channel());
|
||||||
|
|
||||||
|
$r = q("select * from event where event_hash = '%s' $sql_extra limit 1",
|
||||||
|
dbesc($event_id)
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
header('Content-type: text/calendar');
|
header('Content-type: text/calendar');
|
||||||
|
Reference in New Issue
Block a user