Commit c67e5a1c authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

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: default avatarChristoph Seitz <seitz.christoph@gmail.com>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 938b1058
......@@ -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)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment