{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/686","repository_url":"https://api.github.com/repos/strongloop/loopback","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/686/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/686/events","html_url":"https://github.com/strongloop/loopback/issues/686","id":46605568,"number":686,"title":"loopback-explorer should pick up `hideRemoteMethod` called after the explorer was initialized","user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/beginner-friendly","name":"beginner-friendly","color":"00dd00"},{"url":"https://api.github.com/repos/strongloop/loopback/labels/feature","name":"feature","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-10-23T09:34:33Z","updated_at":"2016-04-29T13:30:23Z","closed_at":null,"body":"```\r\n// works, User.login is hidden\r\nUser.disableRemoteMethod('login', true);\r\napp.use(explorer(app, { basePath: '/' }));\r\n\r\n// does not work, User.login is shown in the UI\r\napp.use(explorer(app, { basePath: '/' }));\r\nUser.disableRemoteMethod('login', true);\r\n```\r\n\r\nSee also https://github.com/strongloop/loopback-explorer/pull/22, strongloop/loopback#402 and https://github.com/strongloop/loopback/issues/651"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback/issues/comments/215711395","html_url":"https://github.com/strongloop/loopback/issues/686#issuecomment-215711395","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/686","id":215711395,"user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T13:30:23Z","updated_at":"2016-04-29T13:30:23Z","body":"> I'll send one PR to this repo to make Loopback emits 'remoteMethodDisabled' event and one PR to loopback-component-explorer to re-create the swagger object when this event fired.\r\n\r\nAwesome, thank you for the contribution. I can see the first pull request was already landed :)"}}