Skip to content

Commit

Permalink
πŸ›(frontend) fix disable mailbox button display
Browse files Browse the repository at this point in the history
Do not display disable/enable mailbox button
for viewers.
Only owner and admin can manage mailbox and use
this button.
  • Loading branch information
sdemagny committed Jan 10, 2025
1 parent a28bb5e commit d4a75fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to

### Fixed

- πŸ›(frontend) fix disable mailbox button display #631
- πŸ›(backend) fix dimail call despite mailbox creation failure on our side
- πŸ§‘β€πŸ’»(user) fix the User.language infinite migration #611

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const MailDomainsActions = ({
);
};

if (mailbox.status === 'pending' || mailbox.status === 'failed') {
if (mailbox.status === 'pending' || mailbox.status === 'failed' || mailDomain.abilities.post === false ) {
return null;
}

Expand Down

0 comments on commit d4a75fd

Please sign in to comment.