diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-30 11:09:42 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-30 11:09:42 +0000 |
commit | 44c8d869ffbfa5fe2465f27dfc0aea244d4afc06 (patch) | |
tree | 4dd726b68ba04d148da1ffbe5568f5e0283abc01 /mod/thewire/actions | |
parent | ec949fec913e32a9bc44f8492fff83e326dbbef3 (diff) | |
download | elgg-44c8d869ffbfa5fe2465f27dfc0aea244d4afc06.tar.gz elgg-44c8d869ffbfa5fe2465f27dfc0aea244d4afc06.tar.bz2 |
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
Diffstat (limited to 'mod/thewire/actions')
-rw-r--r-- | mod/thewire/actions/add.php | 4 |
1 files changed, 3 insertions, 1 deletions
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);
|