{"action":"created","issue":{"url":"https://api.github.com/repos/web2py/web2py/issues/1204","repository_url":"https://api.github.com/repos/web2py/web2py","labels_url":"https://api.github.com/repos/web2py/web2py/issues/1204/labels{/name}","comments_url":"https://api.github.com/repos/web2py/web2py/issues/1204/comments","events_url":"https://api.github.com/repos/web2py/web2py/issues/1204/events","html_url":"https://github.com/web2py/web2py/issues/1204","id":139289459,"number":1204,"title":"minor auth.add_membership bug","user":{"login":"alex0834","id":12427073,"avatar_url":"https://avatars.githubusercontent.com/u/12427073?v=3","gravatar_id":"","url":"https://api.github.com/users/alex0834","html_url":"https://github.com/alex0834","followers_url":"https://api.github.com/users/alex0834/followers","following_url":"https://api.github.com/users/alex0834/following{/other_user}","gists_url":"https://api.github.com/users/alex0834/gists{/gist_id}","starred_url":"https://api.github.com/users/alex0834/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex0834/subscriptions","organizations_url":"https://api.github.com/users/alex0834/orgs","repos_url":"https://api.github.com/users/alex0834/repos","events_url":"https://api.github.com/users/alex0834/events{/privacy}","received_events_url":"https://api.github.com/users/alex0834/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-08T14:20:32Z","updated_at":"2016-03-09T11:22:55Z","closed_at":null,"body":"When using auth.add_membership with role parameter the user groups are not updated in the session. Easy fix is to always execute\r\nself.update_groups()"},"comment":{"url":"https://api.github.com/repos/web2py/web2py/issues/comments/194248051","html_url":"https://github.com/web2py/web2py/issues/1204#issuecomment-194248051","issue_url":"https://api.github.com/repos/web2py/web2py/issues/1204","id":194248051,"user":{"login":"niphlod","id":122119,"avatar_url":"https://avatars.githubusercontent.com/u/122119?v=3","gravatar_id":"","url":"https://api.github.com/users/niphlod","html_url":"https://github.com/niphlod","followers_url":"https://api.github.com/users/niphlod/followers","following_url":"https://api.github.com/users/niphlod/following{/other_user}","gists_url":"https://api.github.com/users/niphlod/gists{/gist_id}","starred_url":"https://api.github.com/users/niphlod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niphlod/subscriptions","organizations_url":"https://api.github.com/users/niphlod/orgs","repos_url":"https://api.github.com/users/niphlod/repos","events_url":"https://api.github.com/users/niphlod/events{/privacy}","received_events_url":"https://api.github.com/users/niphlod/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T11:22:55Z","updated_at":"2016-03-09T11:22:55Z","body":"once again, it's not a bug. You're misusing a functionality assuming it would work the way you want to. \r\nAnd your proposed fix won't work on all cases. If you want to manage membership yourself, do it from the top bottom (including this particular corner case)."}}