Fixed broken avatar ajax action for users (#1060)

This commit is contained in:
Roman Kelesidis 2023-11-08 19:13:20 +07:00 committed by GitHub
commit 28b379f740
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 16 deletions

View file

@ -21,7 +21,7 @@ if (!$user_id or !$u_data = get_userdata($user_id)) {
}
if (!IS_ADMIN && $user_id != $user->id) {
$this->ajax_die($lang['NOT_ADMIN']);
$this->ajax_die($lang['NOT_AUTHORISED']);
}
$new_ext_id = 0;