[!] cloudos auth bug
This commit is contained in:
parent
22fd7467a0
commit
bd3a342c92
|
|
@ -51,9 +51,12 @@ import localStorage from "utils/localStorage";
|
|||
import { Toaster } from "components/ads/Toast";
|
||||
import { Variant } from "components/ads/common";
|
||||
import log from "loglevel";
|
||||
import { getAppsmithConfigs } from "configs";
|
||||
|
||||
import { getCurrentUser } from "selectors/usersSelectors";
|
||||
|
||||
const { inCloudOS } = getAppsmithConfigs();
|
||||
|
||||
export function* createUserSaga(
|
||||
action: ReduxActionWithPromise<CreateUserRequest>,
|
||||
) {
|
||||
|
|
@ -106,6 +109,7 @@ export function* getCurrentUserSaga() {
|
|||
response.data.username !== ANONYMOUS_USERNAME
|
||||
) {
|
||||
if (
|
||||
inCloudOS &&
|
||||
!response.data.cloudOSLogged &&
|
||||
matchBuilderPath(window.location.pathname)
|
||||
) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue