aboutsummaryrefslogtreecommitdiffstats
path: root/include/datetime.php
diff options
context:
space:
mode:
authorjeroenpraat <jeroenpraat@xs4all.nl>2014-06-04 14:00:08 +0000
committerjeroenpraat <jeroenpraat@xs4all.nl>2014-06-04 14:00:08 +0000
commitd9688e5ab3bb1c33e432a14ac3455ecb7ca3a6b2 (patch)
treecd0a06052eb398d0401ca61314d9db8a6ce91599 /include/datetime.php
parent5869836180d8721363294c5d8dbe64d6b54571c6 (diff)
parentd84f03d59b4b3f625b36852211698f5606b6b37c (diff)
downloadvolse-hubzilla-d9688e5ab3bb1c33e432a14ac3455ecb7ca3a6b2.tar.gz
volse-hubzilla-d9688e5ab3bb1c33e432a14ac3455ecb7ca3a6b2.tar.bz2
volse-hubzilla-d9688e5ab3bb1c33e432a14ac3455ecb7ca3a6b2.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include/datetime.php')
-rw-r--r--include/datetime.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/datetime.php b/include/datetime.php
index 4884cda11..0214b9e4c 100644
--- a/include/datetime.php
+++ b/include/datetime.php
@@ -484,11 +484,16 @@ function z_birthday($dob,$tz,$format="Y-m-d H:i:s") {
function update_birthdays() {
require_once('include/event.php');
+ require_once('include/permissions.php');
$r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash
WHERE abook_dob > utc_timestamp() + interval 7 day and abook_dob < utc_timestamp() + interval 14 day");
if($r) {
foreach($r as $rr) {
+
+ if(! perm_is_allowed($rr['abook_channel'],$rr['xchan_hash'],'send_stream'))
+ continue;
+
$ev = array();
$ev['uid'] = $rr['abook_channel'];
$ev['account'] = $rr['abook_account'];