diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-09-26 07:42:05 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-09-26 07:43:10 +0200 |
commit | c67e5a1cdf970062c75ad11f019340d318193cbb (patch) | |
tree | db67ee260d9fd5e07f914371590320deb0dc9680 /web/lib/aurjson.class.php | |
parent | 938b1058ebb6f652133fcba8f26606b4fb557d29 (diff) | |
download | aurweb-c67e5a1cdf970062c75ad11f019340d318193cbb.tar.xz |
aurjson.class.php: Sync error message with front-end
Instead of introducing a new message "You do not have the right to edit
this comment." for the RPC interface, use "You are not allowed to edit
this comment." which we already show in the front-end.
Reported-by: Christoph Seitz <seitz.christoph@gmail.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib/aurjson.class.php')
-rw-r--r-- | web/lib/aurjson.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php index 304a50a..db9cc54 100644 --- a/web/lib/aurjson.class.php +++ b/web/lib/aurjson.class.php @@ -532,7 +532,7 @@ class AurJSON { if (!has_credential(CRED_COMMENT_EDIT, array($user_id))) { $output = array( 'success' => 0, - 'error' => __('You do not have the right to edit this comment.') + 'error' => __('You are not allowed to edit this comment.') ); return json_encode($output); } elseif (is_null($comment)) { |