{"action":"reopened","issue":{"url":"https://api.github.com/repos/zooniverse/Panoptes/issues/1811","repository_url":"https://api.github.com/repos/zooniverse/Panoptes","labels_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/1811/labels{/name}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/1811/comments","events_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/1811/events","html_url":"https://github.com/zooniverse/Panoptes/issues/1811","id":156498842,"number":1811,"title":"It is possible to have two memberships to the same group","user":{"login":"marten","id":277,"avatar_url":"https://avatars.githubusercontent.com/u/277?v=3","gravatar_id":"","url":"https://api.github.com/users/marten","html_url":"https://github.com/marten","followers_url":"https://api.github.com/users/marten/followers","following_url":"https://api.github.com/users/marten/following{/other_user}","gists_url":"https://api.github.com/users/marten/gists{/gist_id}","starred_url":"https://api.github.com/users/marten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marten/subscriptions","organizations_url":"https://api.github.com/users/marten/orgs","repos_url":"https://api.github.com/users/marten/repos","events_url":"https://api.github.com/users/marten/events{/privacy}","received_events_url":"https://api.github.com/users/marten/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zooniverse/Panoptes/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-24T12:49:50Z","updated_at":"2016-06-01T09:10:47Z","closed_at":null,"body":"Apparently the `memberships` table is missing unique index on `(user_group_id, user_id)`, which means some people have multiple memberships onto the same group. This causes issues when the roles vary per membership, as the ACL will just pick the one membership out of the database which means you sometimes don't get admin rights to a group you're an admin of.\r\n\r\n### Desired behaviour\r\n\r\nJoining a group should either merge roles or be a no-op."}}
{"actor":{"display_login":"simoneduca"}}