🐛(frontend) fix disable mailbox button display

Do not display disable/enable mailbox button
for viewers.
Only owner and admin can manage mailbox and use
this button.
This commit is contained in:
Sabrina Demagny
2025-01-10 16:14:55 +01:00
parent a28bb5e2a2
commit 9b9aa2aa37
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -47,7 +47,11 @@ export const MailDomainsActions = ({
);
};
if (mailbox.status === 'pending' || mailbox.status === 'failed') {
if (
mailbox.status === 'pending' ||
mailbox.status === 'failed' ||
mailDomain.abilities.post === false
) {
return null;
}