Add tenant restriction

This commit is contained in:
lalitdeore12@gmail.com
2025-10-02 18:55:53 +05:30
parent 0b9d13fb2d
commit c13137ce8c
2 changed files with 47 additions and 1 deletions
+7
View File
@@ -180,6 +180,13 @@ const App = (message, props) => {
var userInfo = {};
if (responseJson.success === true) {
//console.log("USER: ", responseJson);
if (responseJson?.switch_parent === true) {
toast.info(responseJson.reason)
setTimeout(() => {
window.location.reload();
}, 3000);
return
}
userInfo = responseJson;
setIsLoggedIn(true);