{"action":"created","issue":{"url":"https://api.github.com/repos/johnbillion/query-monitor/issues/150","labels_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/150/comments","events_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/150/events","html_url":"https://github.com/johnbillion/query-monitor/issues/150","id":115365984,"number":150,"title":"Add ability to filter user_can_view()","user":{"login":"lkraav","id":147228,"avatar_url":"https://avatars.githubusercontent.com/u/147228?v=3","gravatar_id":"","url":"https://api.github.com/users/lkraav","html_url":"https://github.com/lkraav","followers_url":"https://api.github.com/users/lkraav/followers","following_url":"https://api.github.com/users/lkraav/following{/other_user}","gists_url":"https://api.github.com/users/lkraav/gists{/gist_id}","starred_url":"https://api.github.com/users/lkraav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lkraav/subscriptions","organizations_url":"https://api.github.com/users/lkraav/orgs","repos_url":"https://api.github.com/users/lkraav/repos","events_url":"https://api.github.com/users/lkraav/events{/privacy}","received_events_url":"https://api.github.com/users/lkraav/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-05T20:21:04Z","updated_at":"2015-11-12T20:26:38Z","closed_at":"2015-11-08T13:07:27Z","body":"I have an existing multi-site, where I need to have Administrator roles to get access to Query Monitor. I can see the current logic grants `view_query_monitor` on plugin activation for single sites. But on big development multi-site, granting this capability for Administrator on site by site basis is just a big hassle. With Debug Bar I had a mu-plugin that filtered the output of the permission check to an alternative cap. For example, I would prefer to filter `view_query_monitor` check and turn it into something every Administrator has by default.\r\n\r\nOr am I missing something basic here? My Admins aren't able to see QM right now."},"comment":{"url":"https://api.github.com/repos/johnbillion/query-monitor/issues/comments/156224445","html_url":"https://github.com/johnbillion/query-monitor/issues/150#issuecomment-156224445","issue_url":"https://api.github.com/repos/johnbillion/query-monitor/issues/150","id":156224445,"user":{"login":"johnbillion","id":208434,"avatar_url":"https://avatars.githubusercontent.com/u/208434?v=3","gravatar_id":"","url":"https://api.github.com/users/johnbillion","html_url":"https://github.com/johnbillion","followers_url":"https://api.github.com/users/johnbillion/followers","following_url":"https://api.github.com/users/johnbillion/following{/other_user}","gists_url":"https://api.github.com/users/johnbillion/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbillion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbillion/subscriptions","organizations_url":"https://api.github.com/users/johnbillion/orgs","repos_url":"https://api.github.com/users/johnbillion/repos","events_url":"https://api.github.com/users/johnbillion/events{/privacy}","received_events_url":"https://api.github.com/users/johnbillion/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T20:26:38Z","updated_at":"2015-11-12T20:26:38Z","body":"Yep, that's the way to do it for now. In a future release I'll probably switch to using capability filtering on the fly instead of adding and removing the `view_query_monitor` cap when activating and deactivating the plugin. This should continue to work in that situation."}}