Currently group invitations are only removed when they are accepted. There is no way to deny a membership request or an invite, all a user can do is ignore it forever.
Implement the :delete action for both the UsersGroupMembershipRequestController and the GroupInvitationController.
Allow the owners of groups to delete GroupMembershipRequests using the :delete action on the GroupInvitationController which should be located on the :index action's template.
Allow users to delete their own GroupMembershipRequests using the :delete action on the UsersGroupMembershipRequestController which should be located on the :index action's template.
[x] Implement controller actions
[x] :delete action on GroupInvitationController
[x] A GroupMembershipRequest associated with a Group should only be deletable by the group's owner.
[x] :delete action on UsersGroupMembershipRequestController
[x] A GroupMembershipRequest associated with a User should only be deletable by that user.
[x] Add delete links to the UI
[x] Delete links on GroupInvitationControllerindex.html.eex template.
[x] Delete links on UsersGroupMembershipRequestControllerindex.html.eex template
Currently group invitations are only removed when they are accepted. There is no way to deny a membership request or an invite, all a user can do is ignore it forever.
Implement the :delete action for both the
UsersGroupMembershipRequestController
and theGroupInvitationController
.Allow the owners of groups to delete
GroupMembershipRequest
s using the :delete action on theGroupInvitationController
which should be located on the :index action's template.Allow users to delete their own
GroupMembershipRequest
s using the :delete action on theUsersGroupMembershipRequestController
which should be located on the :index action's template.GroupInvitationController
GroupMembershipRequest
associated with aGroup
should only be deletable by the group's owner.UsersGroupMembershipRequestController
GroupMembershipRequest
associated with aUser
should only be deletable by that user.GroupInvitationController
index.html.eex
template.UsersGroupMembershipRequestController
index.html.eex
template