{"action":"created","issue":{"url":"https://api.github.com/repos/ultimatemember/ultimatemember/issues/94","repository_url":"https://api.github.com/repos/ultimatemember/ultimatemember","labels_url":"https://api.github.com/repos/ultimatemember/ultimatemember/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/ultimatemember/ultimatemember/issues/94/comments","events_url":"https://api.github.com/repos/ultimatemember/ultimatemember/issues/94/events","html_url":"https://github.com/ultimatemember/ultimatemember/issues/94","id":135759726,"number":94,"title":"Admin user profile page compares um_role with logged in user instead of context user","user":{"login":"markuskothe","id":2950389,"avatar_url":"https://avatars.githubusercontent.com/u/2950389?v=3","gravatar_id":"","url":"https://api.github.com/users/markuskothe","html_url":"https://github.com/markuskothe","followers_url":"https://api.github.com/users/markuskothe/followers","following_url":"https://api.github.com/users/markuskothe/following{/other_user}","gists_url":"https://api.github.com/users/markuskothe/gists{/gist_id}","starred_url":"https://api.github.com/users/markuskothe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markuskothe/subscriptions","organizations_url":"https://api.github.com/users/markuskothe/orgs","repos_url":"https://api.github.com/users/markuskothe/repos","events_url":"https://api.github.com/users/markuskothe/events{/privacy}","received_events_url":"https://api.github.com/users/markuskothe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-23T14:59:47Z","updated_at":"2016-02-24T07:16:20Z","closed_at":null,"body":"In this row, the user that is checked for um_role seems to be the logged in user instead of the context user?\r\nhttps://github.com/ultimatemember/ultimatemember/blob/master/core/um-user.php#L71\r\n\r\n`um_user('role')\r\nshould be\r\n$user->role\r\n?`"},"comment":{"url":"https://api.github.com/repos/ultimatemember/ultimatemember/issues/comments/188114155","html_url":"https://github.com/ultimatemember/ultimatemember/issues/94#issuecomment-188114155","issue_url":"https://api.github.com/repos/ultimatemember/ultimatemember/issues/94","id":188114155,"user":{"login":"markuskothe","id":2950389,"avatar_url":"https://avatars.githubusercontent.com/u/2950389?v=3","gravatar_id":"","url":"https://api.github.com/users/markuskothe","html_url":"https://github.com/markuskothe","followers_url":"https://api.github.com/users/markuskothe/followers","following_url":"https://api.github.com/users/markuskothe/following{/other_user}","gists_url":"https://api.github.com/users/markuskothe/gists{/gist_id}","starred_url":"https://api.github.com/users/markuskothe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markuskothe/subscriptions","organizations_url":"https://api.github.com/users/markuskothe/orgs","repos_url":"https://api.github.com/users/markuskothe/repos","events_url":"https://api.github.com/users/markuskothe/events{/privacy}","received_events_url":"https://api.github.com/users/markuskothe/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T07:16:20Z","updated_at":"2016-02-24T07:16:20Z","body":"hmm... still, um_user('role') returned the role for me as logged in Admin and not the user I was editing"}}