From 9fa341d04ad03c9f8328d3c4a836f8191a5f2f7a Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Sat, 26 Jun 2010 15:11:37 +0200 Subject: [PATCH] check for user in act_subscription FS#1935 --- inc/actions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/actions.php b/inc/actions.php index b447b65e1..5141f1941 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -596,6 +596,9 @@ function act_subscription($act){ global $INFO; global $ID; + // subcriptions work for logged in users only + if(!$_SERVER['REMOTE_USER']) return 'show'; + // get and preprocess data. $params = array(); foreach(array('target', 'style', 'action') as $param) { -- GitLab