{"action":"created","issue":{"url":"https://api.github.com/repos/easy-updates-manager/easy-updates-manager/issues/118","labels_url":"https://api.github.com/repos/easy-updates-manager/easy-updates-manager/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/easy-updates-manager/easy-updates-manager/issues/118/comments","events_url":"https://api.github.com/repos/easy-updates-manager/easy-updates-manager/issues/118/events","html_url":"https://github.com/easy-updates-manager/easy-updates-manager/issues/118","id":118891886,"number":118,"title":"The `update_core` parameter for `current_user_can()` causes fail for Godaddy Managed WP","user":{"login":"lolux","id":5421342,"avatar_url":"https://avatars.githubusercontent.com/u/5421342?v=3","gravatar_id":"","url":"https://api.github.com/users/lolux","html_url":"https://github.com/lolux","followers_url":"https://api.github.com/users/lolux/followers","following_url":"https://api.github.com/users/lolux/following{/other_user}","gists_url":"https://api.github.com/users/lolux/gists{/gist_id}","starred_url":"https://api.github.com/users/lolux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lolux/subscriptions","organizations_url":"https://api.github.com/users/lolux/orgs","repos_url":"https://api.github.com/users/lolux/repos","events_url":"https://api.github.com/users/lolux/events{/privacy}","received_events_url":"https://api.github.com/users/lolux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/easy-updates-manager/easy-updates-manager/labels/bug","name":"bug","color":"009800"},{"url":"https://api.github.com/repos/easy-updates-manager/easy-updates-manager/labels/high","name":"high","color":"e11d21"},{"url":"https://api.github.com/repos/easy-updates-manager/easy-updates-manager/labels/testing","name":"testing","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-25T18:00:59Z","updated_at":"2015-11-25T22:56:19Z","closed_at":null,"body":"Hello Matthew,\r\n\r\nFirst off, thanks for this great plugin. I'm glad to see it gaining in popularity. Keep up the great work!\r\n\r\nI am experiencing a fatal error (die: \"User does not have sufficient permissions\") after activation and then attempting to access the configuration page on my Godaddy Managed WP sites.\r\n\r\nThe cause of the issue is that the `update_core` parameter is used for a permissions check in `current_user_can()`; since GoDaddy (and possibly other managed hosts???) automatically disable that permission for admin-role users (presumably since the host itself handles all core updates), my admin user is blocked.\r\n\r\nIf I change all the instances of the `update_core` parameter to another admin-role capability such as `install_plugins`, the plugin works.\r\n\r\nSo, I suggest considering changing the parameter (or some other workaround) to accommodate managed WP hosting use cases such as GoDaddy Managed.\r\n\r\npeace,\r\nLaurence\r\n"},"comment":{"url":"https://api.github.com/repos/easy-updates-manager/easy-updates-manager/issues/comments/159750138","html_url":"https://github.com/easy-updates-manager/easy-updates-manager/issues/118#issuecomment-159750138","issue_url":"https://api.github.com/repos/easy-updates-manager/easy-updates-manager/issues/118","id":159750138,"user":{"login":"ronalfy","id":636521,"avatar_url":"https://avatars.githubusercontent.com/u/636521?v=3","gravatar_id":"","url":"https://api.github.com/users/ronalfy","html_url":"https://github.com/ronalfy","followers_url":"https://api.github.com/users/ronalfy/followers","following_url":"https://api.github.com/users/ronalfy/following{/other_user}","gists_url":"https://api.github.com/users/ronalfy/gists{/gist_id}","starred_url":"https://api.github.com/users/ronalfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronalfy/subscriptions","organizations_url":"https://api.github.com/users/ronalfy/orgs","repos_url":"https://api.github.com/users/ronalfy/repos","events_url":"https://api.github.com/users/ronalfy/events{/privacy}","received_events_url":"https://api.github.com/users/ronalfy/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T22:56:19Z","updated_at":"2015-11-25T22:56:19Z","body":"@lolux I'm working off of the dev branch, but we plan to merge into the trunk branch soon once WordPress 4.4 RC1 rolls out.\r\n\r\nI got this working locally and it seemed fine: https://github.com/easy-updates-manager/easy-updates-manager/commit/ff511dee916761e27925cd5b38a2c6c4dd0b23ff"}}