mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
fix(server): premissions guard for read and write endpoints
This commit is contained in:
@@ -58,7 +58,7 @@ export default function useApiRequest() {
|
||||
setLogout();
|
||||
}
|
||||
if (status === 403) {
|
||||
setGlobalErrors({ access_denied: true });
|
||||
setGlobalErrors({ access_denied: { message: data.message } });
|
||||
}
|
||||
if (status === 429) {
|
||||
setGlobalErrors({ too_many_requests: true });
|
||||
|
||||
Reference in New Issue
Block a user