mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
Add Setting.isResponseDenied()
This commit is contained in:
@ -23,7 +23,7 @@ const {fetch: originalFetch} = window;
|
||||
|
||||
const demoModeCallback = (res) => {
|
||||
res.json().then(data => {
|
||||
if (data.msg === "Unauthorized operation") {
|
||||
if (Setting.isResponseDenied(data)) {
|
||||
confirm({
|
||||
title: i18next.t("general:This is a read-only demo site!"),
|
||||
icon: <ExclamationCircleFilled />,
|
||||
|
Reference in New Issue
Block a user