From 44c8d869ffbfa5fe2465f27dfc0aea244d4afc06 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 30 Mar 2009 11:09:42 +0000 Subject: Refs #926: Private wire posts get bumped to 'logged in' git-svn-id: https://code.elgg.org/elgg/trunk@3174 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/thewire/actions/add.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/thewire/actions/add.php b/mod/thewire/actions/add.php index 77f877c3c..4226395b8 100644 --- a/mod/thewire/actions/add.php +++ b/mod/thewire/actions/add.php @@ -16,7 +16,9 @@ // Get input data $body = get_input('note'); $tags = get_input('thewiretags'); - $access_id = get_default_access(); + $access_id = (int)get_default_access(); + if ($access_id == ACCESS_PRIVATE) + $access_id = ACCESS_LOGGED_IN; // Private wire messages are pointless $location = get_input('location'); $method = get_input('method'); $parent = (int)get_input('parent', 0); -- cgit v1.2.3