Skip to content

Commit

Permalink
Merge pull request #176 from novaforgood/Max/block
Browse files Browse the repository at this point in the history
Fix viewing spaces publicly
  • Loading branch information
legitmaxwu committed Jul 6, 2023
2 parents 15322f7 + 2efe6bd commit 26371d3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ select_permissions:
- created_at
- id
- space_id
computed_fields:
- blocked_by_user
filter:
_and:
- space:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ select_permissions:
- role: public
permission:
columns:
- char_count
- deleted
- description
- id
- listing_order
- space_id
- title
- char_count
- listing_order
- deleted
- updated_at
filter:
_or:
Expand Down
4 changes: 4 additions & 0 deletions web/pages/space/[slug]/profile/[profileId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ function ProfilePageDropdown() {

const fullName = getFullNameOfUser(profileData.profile_by_pk.user);

if (!isLoggedIn) {
return null;
}

return (
<Menu as="div" className="relative inline-block text-left">
{({ open }) => {
Expand Down

0 comments on commit 26371d3

Please sign in to comment.