Skip to content

Commit

Permalink
fix: all user roles can see 'Signed in' menu items (#4196)
Browse files Browse the repository at this point in the history
  • Loading branch information
harmbrugge authored Sep 9, 2024
1 parent 1a10c7d commit d04d436
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ export default {
if (this.session.email === "admin") {
return true;
}
if (item.role === "Signed in" && this.session.email === "anonymous") {
return false;
if (item.role === "Signed in" && this.session.email !== "anonymous") {
return true;
}
if (item.role === "Viewer") {
return this.session.roles.some((r) =>
Expand Down

0 comments on commit d04d436

Please sign in to comment.