Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Prevent exception when account is not loaded yet

Chocobozzzda7b5f912a05
diff --git a/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts b/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts
index a666124e0c..35e886476b 100644
--- a/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts
+++ b/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts
@@ -359,8 +359,10 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
const hasAccountBlocklistRight = this.account() && displayOptions.instanceAccount &&
authUser.hasRight(UserRight.MANAGE_ACCOUNTS_BLOCKLIST)
- const hasServerBlocklistRight = displayOptions.instanceAccount && authUser.hasRight(UserRight.MANAGE_SERVERS_BLOCKLIST)
- const hasBulkRemoveCommentsRight = displayOptions.instanceAccount && authUser.hasRight(UserRight.MANAGE_ANY_VIDEO_COMMENT)
+ const hasServerBlocklistRight = this.account() && displayOptions.instanceAccount &&
+ authUser.hasRight(UserRight.MANAGE_SERVERS_BLOCKLIST)
+ const hasBulkRemoveCommentsRight = this.account() && displayOptions.instanceAccount &&
+ authUser.hasRight(UserRight.MANAGE_ANY_VIDEO_COMMENT)
if (hasManageRight) {
instanceActions.push([