mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
disable demo prompt for get-organizations API
This commit is contained in:
@ -51,7 +51,9 @@ window.fetch = async(url, option = {}) => {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
originalFetch(url, option).then(res => {
|
||||
responseFilters.forEach(filter => filter(res.clone()));
|
||||
if (!url.startsWith("/api/get-organizations")) {
|
||||
responseFilters.forEach(filter => filter(res.clone()));
|
||||
}
|
||||
resolve(res);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user