Skip to content

Commit

Permalink
Fixed Insufficient permmisions bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Jul 24, 2024
1 parent 04287d1 commit bf4d03d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webui/src/lib/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ const apiRequest = async (uri, requestData = {}, additionalHeaders = {}) => {
cache.delete('user');
throw new AuthenticationError('Authentication Error', response.status);
}
if (errorMessage === '') {
throw new AuthorizationError("Insufficient Permissions", response.status);
}
throw new AuthorizationError(errorMessage, response.status);
}

Expand Down

0 comments on commit bf4d03d

Please sign in to comment.