task#5545 check an invitation is valid or not before save
Merge pull request #102 from cuongnv540/task#5545

task#5545 check an invitation is valid or not before save
task#5554 delete activity of user when user deleted