In getTicketR, if author is local, make sure a TicketUnderProject exists

This commit is contained in:
fr33domlover 2020-02-08 15:42:55 +00:00
parent 32173fe0c0
commit c03dacdb11

View file

@ -270,6 +270,7 @@ getTicketR shar proj ltkhid = do
requireEitherAlt
(do mtal <- getValBy $ UniqueTicketAuthorLocal ltid
for mtal $ \ tal -> do
_ <- getBy404 $ UniqueTicketUnderProjectProject tplid
p <- getJust $ ticketAuthorLocalAuthor tal
getJust $ personIdent p
)