{"data":{"id":"magento2-38279","source":"github-pr","sourceRef":"magento/magento2#38279","title":"add permission check for \"reload data\" data button","pr":{"number":38279,"url":"https://github.com/magento/magento2/pull/38279","author":"brosenberger","mergedAt":"2024-10-18T16:54:12Z","mergeCommit":"14454dea5f6a093fae0129270c651c2b60e19c5c","headCommit":"d3dc8c7b223a27ea82b0c1d8c34d719f23b11b96","baseRef":"2.4-develop","diffSha256":"6c05094f763b2df7186b79d7322a916c63a07e8994024c1620edd6e711bb4c79"},"issues":[{"number":38283,"url":"https://github.com/magento/magento2/issues/38283","title":"[Issue] add permission check for \"reload data\" data button","labels":["Area: Admin UI","Component: Reports","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x"],"kind":"pr-derived"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"conflict","2.4.6-p15":"conflict","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"conflict","2.4.7-p10":"conflict","2.4.8":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8"],"components":["magento/module-backend"],"files":[{"path":"app/code/Magento/Backend/view/adminhtml/templates/dashboard/totalbar/refreshstatistics.phtml","change":"modified","package":"magento/module-backend"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":13,"mergeBatched":false,"excluded":null,"sections":{"description":null,"stepsToReproduce":"1. create a new user role, without the permission Magento_Reports::statistics\n2. create a new user with that role\n\nExpected:\n3. no \"Reload Data\" button is shown, as there is no permission for that \n\nActual:\n3. the \"Reload Data\" button is shown and clickable\n4. on click of the \"Reload Data\" button a \"not permitted\"-page is shown to the user","expectedResult":null,"actualResult":null,"source":"pr"},"signatures":[],"labels":{"area":["Admin UI"],"component":["Reports"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":["Admin","Reports"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"723838ba59b9fa9518a2d5581891fb2fb1634a1e6e54f5c350a4fef0be915254","isBugfix":0.9465,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.932,"feature":0.0199,"refactor":0.017,"tests_only":0.0063,"docs_only":0.0053,"dependency":0.0049,"cleanup":0.0146},"confidence":0.8479},"scope":{"score":0.5808,"probabilities":{"0":0.5038,"1":0.4116,"2":0.0846},"confidence":0.1456},"risk":{"score":0.271,"probabilities":{"0":0.7536,"1":0.2217,"2":0.0247},"confidence":0.4266},"area":{"choice":"admin","probabilities":{"catalog":0.0078,"checkout":0.0059,"customer":0.0066,"admin":0.9248,"graphql_api":0.0044,"framework":0.013,"frontend":0.0198,"other":0.0177},"confidence":0.8357},"securityRelevant":0.8913,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0055,"2.4.0-p1":0.0052,"2.4.1":0.0056,"2.4.1-p1":0.0052,"2.4.2":0.0097,"2.4.2-p1":0.0088,"2.4.2-p2":0.0085,"2.4.3":0.0123,"2.4.3-p1":0.0113,"2.4.3-p2":0.0102,"2.4.3-p3":0.0075,"2.4.4":0.0205,"2.4.4-p1":0.0125,"2.4.4-p10":0.0081,"2.4.4-p11":0.0093,"2.4.4-p12":0.0081,"2.4.4-p13":0.0084,"2.4.4-p14":0.0107,"2.4.4-p15":0.0074,"2.4.4-p16":0.0094,"2.4.4-p17":0.007,"2.4.4-p18":0.0065,"2.4.4-p2":0.0033,"2.4.4-p3":0.0039,"2.4.4-p4":0.0038,"2.4.4-p5":0.0044,"2.4.4-p6":0.005,"2.4.4-p7":0.0049,"2.4.4-p8":0.0064,"2.4.4-p9":0.0054,"2.4.5":0.0153,"2.4.5-p1":0.0125,"2.4.5-p10":0.0079,"2.4.5-p11":0.0127,"2.4.5-p12":0.0116,"2.4.5-p13":0.0102,"2.4.5-p14":0.0087,"2.4.5-p15":0.0077,"2.4.5-p16":0.0091,"2.4.5-p17":0.0074,"2.4.5-p2":0.0036,"2.4.5-p3":0.0055,"2.4.5-p4":0.0057,"2.4.5-p5":0.0045,"2.4.5-p6":0.0065,"2.4.5-p7":0.0065,"2.4.5-p8":0.0055,"2.4.5-p9":0.0052,"2.4.6":0.0305,"2.4.6-p1":0.0211,"2.4.6-p10":0.0089,"2.4.6-p11":0.0126,"2.4.6-p12":0.0118,"2.4.6-p13":0.0112,"2.4.6-p14":0.0124,"2.4.6-p15":0.0087,"2.4.6-p2":0.0052,"2.4.6-p3":0.0087,"2.4.6-p4":0.0092,"2.4.6-p5":0.0075,"2.4.6-p6":0.0086,"2.4.6-p7":0.0093,"2.4.6-p8":0.0066,"2.4.6-p9":0.0058,"2.4.7":0.0184,"2.4.7-p1":0.0157,"2.4.7-p10":0.0101,"2.4.7-p2":0.01,"2.4.7-p3":0.0137,"2.4.7-p4":0.0162,"2.4.7-p5":0.0129,"2.4.7-p6":0.017,"2.4.7-p7":0.0129,"2.4.7-p8":0.0105,"2.4.7-p9":0.0069,"2.4.8":0.0202,"2.4.8-p1":0.0178,"2.4.8-p2":0.0218,"2.4.8-p3":0.0182,"2.4.8-p4":0.0174,"2.4.8-p5":0.0149,"2.4.9":0.0169,"unspecified":0.1695},"confidence":0.0275},"backportWorthy":{"score":1.4703,"probabilities":{"0":0.1217,"1":0.2863,"2":0.592},"confidence":0.1709}},"curated":{"title":"The Reload Data button shows for admin users without the statistics permission","description":"On the admin dashboard, the Reload Data button is shown and clickable for a user without the Magento_Reports::statistics permission, and on click a not permitted page is shown. The refreshstatistics.phtml template now shows the button form only when isAllowed('Magento_Reports::statistics') is true.","categories":["Admin","Reports"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38279 details"}