test with disabled user

This commit is contained in:
einhornimmond 2024-05-08 18:16:18 +02:00
parent d089146fe4
commit 42c12a3e8a
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,8 @@ export async function syncUser(
if (humhubUser) {
if (!user.humhubAllowed) {
await humHubClient.deleteUser(humhubUser.id)
postUser.account.status = 0
await humHubClient.updateUser(postUser, humhubUser.id)
return ExecutedHumhubAction.DELETE
}
if (!isHumhubUserIdenticalToDbUser(humhubUser, user)) {

View File

@ -241,7 +241,7 @@ export default {
return firstName === this.firstName && lastName === this.lastName
},
isHumhubActivated() {
return this.humhubAllowed
return false // this.humhubAllowed
},
isCommunityService() {
return this.isGMS || this.isHumhub