Jhbate/accept

@cheddar could you have a look at this please. I am using the code in blip for access&invitations at the moment.

Thanks
Jamie
Do we really want to log the permissions every time this code runs?