mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
938b1058eb
commit
c67e5a1cdf
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue