0
1
Fork 0

Merge pull request 'refs #3867 Fix: display message of forbidden errors' (!30) from master into test

Reviewed-on: verdnatura/hedera-web#30
This commit is contained in:
Juan Ferrer 2023-03-10 11:22:50 +00:00
commit 5ce2f46842
3 changed files with 6 additions and 5 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (23.6.8) stable; urgency=low
hedera-web (23.6.9) stable; urgency=low
* Initial Release.

View File

@ -238,9 +238,10 @@ module.exports = new Class({
if (err instanceof Vn.JsonException) {
const statusCode = err.statusCode;
if (statusCode >= 400 && statusCode < 500) {
if (err.statusCode == 403)
Htk.Toast.showError(_('You don\'t have enough privileges'));
else {
if (err.statusCode == 403) {
Htk.Toast.showError(err.message ||
_('You don\'t have enough privileges'));
} else {
switch (err.exception) {
case 'UserDisabledError':
case 'OutdatedVersionError':

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "23.6.8",
"version": "23.6.9",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {