remove watch if user gets removed from collaborators

This commit is contained in:
David Schneiderbauer 2018-06-09 23:09:29 +02:00
parent 4774973589
commit a7a0b85d20
No known key found for this signature in database
GPG Key ID: 576113B2803B3EAB

View File

@ -172,5 +172,9 @@ func (repo *Repository) DeleteCollaboration(uid int64) (err error) {
return err
}
if err = watchRepo(sess, uid, repo.ID, false); err != nil {
return err
}
return sess.Commit()
}