chore(mail): add supervisor mail tag only for supervisors

This commit is contained in:
Steffen Jost 2022-11-03 16:53:54 +01:00
parent a75c7520b5
commit 030a4be533

View File

@ -84,8 +84,9 @@ userMailT uid mAct = do
mailT ctx $ do
_mailTo .= pure (userAddress supervisor)
mAct
mapSubject ("[SUPERVISOR]"<>) -- changing subject is easy
--addPart explanationSupervisor -- adding an attachment is also easy
unless (uid==svr) $ -- do
mapSubject ("[SUPERVISOR]"<>) -- changing subject is easy
--addPart explanationSupervisor -- adding an attachment is also easy
_userMailTdirect :: ( MonadHandler m