remove watch if user gets removed from collaborators
This commit is contained in:
parent
4774973589
commit
a7a0b85d20
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user