aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r--mail/mail-component.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c
index a05dbd7526..af9add5a80 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -405,6 +405,9 @@ impl_requestCreateItem (PortableServer_Servant servant,
ex_GNOME_Evolution_Component_UnknownType, NULL);
return;
}
+
+ if (!em_utils_check_user_can_send_mail(NULL))
+ return;
em_utils_compose_new_message ();
}
@@ -413,6 +416,9 @@ static void
impl_handleURI (PortableServer_Servant servant, const char *uri, CORBA_Environment *ev)
{
if (!strncmp (uri, "mailto:", 7)) {
+ if (!em_utils_check_user_can_send_mail(NULL))
+ return;
+
em_utils_compose_new_message_with_mailto (uri);
}
}