From 4e8e77f6b091e024f58241c2807c61e0b7930e5c Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Thu, 29 Jul 2010 18:47:28 +0000 Subject: Return HTTP 403 instead of 400 when silenced users try to post via API --- classes/Notice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/Notice.php') diff --git a/classes/Notice.php b/classes/Notice.php index 8552248ba..36943be84 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -275,7 +275,7 @@ class Notice extends Memcached_DataObject if (!$profile->hasRight(Right::NEWNOTICE)) { common_log(LOG_WARNING, "Attempted post from user disallowed to post: " . $profile->nickname); - throw new ClientException(_('You are banned from posting notices on this site.')); + throw new ClientException(_('You are banned from posting notices on this site.'), 403); } $notice = new Notice(); -- cgit v1.2.3-54-g00ecf