groups, list users invited with ability to remove their invitation, @lefnire i used group.invites from Group Schema which was already defined but not used by anything, fix #1523

This commit is contained in:
Matteo Pagliazzi
2013-10-29 18:01:01 +01:00
parent 6af71f0e44
commit fd952701db
3 changed files with 70 additions and 22 deletions

View File

@@ -192,7 +192,6 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
var group = new Groups.Group({_id: party.id, name: party.name});
// there a better way to access GroupsCtrl.groups.party?
group.$join(function(){
User.user.invitations.party = undefined;
location.reload();
});
}