{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/13478","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/13478/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/13478/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/13478/events","html_url":"https://github.com/magento/magento2/issues/13478","id":293983335,"node_id":"MDU6SXNzdWUyOTM5ODMzMzU=","number":13478,"title":"Custom role backend user cannot place an admin order using Braintree payment","user":{"login":"goivvy","id":1328492,"node_id":"MDQ6VXNlcjEzMjg0OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1328492?v=4","gravatar_id":"","url":"https://api.github.com/users/goivvy","html_url":"https://github.com/goivvy","followers_url":"https://api.github.com/users/goivvy/followers","following_url":"https://api.github.com/users/goivvy/following{/other_user}","gists_url":"https://api.github.com/users/goivvy/gists{/gist_id}","starred_url":"https://api.github.com/users/goivvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goivvy/subscriptions","organizations_url":"https://api.github.com/users/goivvy/orgs","repos_url":"https://api.github.com/users/goivvy/repos","events_url":"https://api.github.com/users/goivvy/events{/privacy}","received_events_url":"https://api.github.com/users/goivvy/received_events","type":"User","site_admin":false},"labels":[{"id":686420665,"node_id":"MDU6TGFiZWw2ODY0MjA2NjU=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Clear%20Description","name":"Issue: Clear Description","color":"0e8a16","default":false},{"id":686476746,"node_id":"MDU6TGFiZWw2ODY0NzY3NDY=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Confirmed","name":"Issue: Confirmed","color":"0e8a16","default":false},{"id":688811200,"node_id":"MDU6TGFiZWw2ODg4MTEyMDA=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Format%20is%20valid","name":"Issue: Format is valid","color":"0e8a16","default":false},{"id":21716835,"node_id":"MDU6TGFiZWwyMTcxNjgzNQ==","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Ready%20for%20Work","name":"Issue: Ready for Work","color":"0e8a16","default":false},{"id":686477069,"node_id":"MDU6TGFiZWw2ODY0NzcwNjk=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.1.x","name":"Reproduced on 2.1.x","color":"e99695","default":false},{"id":686477126,"node_id":"MDU6TGFiZWw2ODY0NzcxMjY=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.2.x","name":"Reproduced on 2.2.x","color":"e99695","default":false}],"state":"open","locked":false,"assignee":{"login":"engcom-backlog-andrii","id":41946904,"node_id":"MDQ6VXNlcjQxOTQ2OTA0","avatar_url":"https://avatars1.githubusercontent.com/u/41946904?v=4","gravatar_id":"","url":"https://api.github.com/users/engcom-backlog-andrii","html_url":"https://github.com/engcom-backlog-andrii","followers_url":"https://api.github.com/users/engcom-backlog-andrii/followers","following_url":"https://api.github.com/users/engcom-backlog-andrii/following{/other_user}","gists_url":"https://api.github.com/users/engcom-backlog-andrii/gists{/gist_id}","starred_url":"https://api.github.com/users/engcom-backlog-andrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engcom-backlog-andrii/subscriptions","organizations_url":"https://api.github.com/users/engcom-backlog-andrii/orgs","repos_url":"https://api.github.com/users/engcom-backlog-andrii/repos","events_url":"https://api.github.com/users/engcom-backlog-andrii/events{/privacy}","received_events_url":"https://api.github.com/users/engcom-backlog-andrii/received_events","type":"User","site_admin":false},"assignees":[{"login":"engcom-backlog-andrii","id":41946904,"node_id":"MDQ6VXNlcjQxOTQ2OTA0","avatar_url":"https://avatars1.githubusercontent.com/u/41946904?v=4","gravatar_id":"","url":"https://api.github.com/users/engcom-backlog-andrii","html_url":"https://github.com/engcom-backlog-andrii","followers_url":"https://api.github.com/users/engcom-backlog-andrii/followers","following_url":"https://api.github.com/users/engcom-backlog-andrii/following{/other_user}","gists_url":"https://api.github.com/users/engcom-backlog-andrii/gists{/gist_id}","starred_url":"https://api.github.com/users/engcom-backlog-andrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engcom-backlog-andrii/subscriptions","organizations_url":"https://api.github.com/users/engcom-backlog-andrii/orgs","repos_url":"https://api.github.com/users/engcom-backlog-andrii/repos","events_url":"https://api.github.com/users/engcom-backlog-andrii/events{/privacy}","received_events_url":"https://api.github.com/users/engcom-backlog-andrii/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-02-02T18:36:52Z","updated_at":"2018-12-26T09:34:57Z","closed_at":null,"author_association":"NONE","body":"### Preconditions\r\n1. Magento 2.2.2\r\n\r\n\r\n### Steps to reproduce\r\n1. In backend create a custom role RoleX with limited access. Make sure you choose all Sales permissions.\r\n2. Create a backend user UserX and assign it to RoleX.\r\n3. Enable Braintree credit card payment.\r\n4. Login to backend as UserX and try to place an admin order using Braintree payment.\r\n\r\n### Expected result\r\n1. An admin order is created.\r\n\r\n### Actual result\r\n1. You cannot add credit card details, it is inactive.\r\n2. Request to admin/braintree/payment/getClientToken returns 403.\r\n\r\n\r\nIt happens because vendor/magento/module-braintree/Controller/Adminhtml/Payment/GetClientToken.php references ADMIN_RESOURCE = 'Magento_Braintree::get_client_token' but that resource is not defined in vendor/magento/module-braintree/etc/acl.xml.\r\n\r\nAdding it to acl.xml:\r\n\r\n<resource id=\"Magento_Braintree::get_client_token\" title=\"Braintree GetToken\" sortOrder=\"90\" />\r\n\r\nand then setting it for RoleX solves the problem.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/449938736","html_url":"https://github.com/magento/magento2/issues/13478#issuecomment-449938736","issue_url":"https://api.github.com/repos/magento/magento2/issues/13478","id":449938736,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTkzODczNg==","user":{"login":"engcom-backlog-andrii","id":41946904,"node_id":"MDQ6VXNlcjQxOTQ2OTA0","avatar_url":"https://avatars1.githubusercontent.com/u/41946904?v=4","gravatar_id":"","url":"https://api.github.com/users/engcom-backlog-andrii","html_url":"https://github.com/engcom-backlog-andrii","followers_url":"https://api.github.com/users/engcom-backlog-andrii/followers","following_url":"https://api.github.com/users/engcom-backlog-andrii/following{/other_user}","gists_url":"https://api.github.com/users/engcom-backlog-andrii/gists{/gist_id}","starred_url":"https://api.github.com/users/engcom-backlog-andrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engcom-backlog-andrii/subscriptions","organizations_url":"https://api.github.com/users/engcom-backlog-andrii/orgs","repos_url":"https://api.github.com/users/engcom-backlog-andrii/repos","events_url":"https://api.github.com/users/engcom-backlog-andrii/events{/privacy}","received_events_url":"https://api.github.com/users/engcom-backlog-andrii/received_events","type":"User","site_admin":false},"created_at":"2018-12-26T09:34:57Z","updated_at":"2018-12-26T09:34:57Z","author_association":"NONE","body":"@magento-engcom-team give me 2.3.0 instance"}}
{"actor":{"display_login":"engcom-backlog-andrii"}}