Skip to content

Commit 4a115b8

Browse files
authored
Hide excluded apps for guests (#9608)
Signed-off-by: Anton Alexeyev <[email protected]>
1 parent 7036415 commit 4a115b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/workbench-resources/src/components/Applications.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
function updateExcludedApps (): void {
5858
const me = getCurrentAccount()
5959
60-
if (me.role === AccountRole.ReadOnlyGuest) {
60+
if (me.role === AccountRole.ReadOnlyGuest || me.role === AccountRole.Guest) {
6161
excludedApps = getMetadata(workbench.metadata.ExcludedApplicationsForAnonymous) ?? []
6262
} else {
6363
excludedApps = []

plugins/workbench-resources/src/components/Workbench.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@
766766
function isExcludedApp (alias: string): boolean {
767767
const me = getCurrentAccount()
768768
769-
if (me.role === AccountRole.ReadOnlyGuest) {
769+
if (me.role === AccountRole.ReadOnlyGuest || me.role === AccountRole.Guest) {
770770
return (getMetadata(workbench.metadata.ExcludedApplicationsForAnonymous) ?? []).includes(alias)
771771
} else {
772772
return false

0 commit comments

Comments
 (0)