cancel
Showing results for 
Search instead for 
Did you mean: 

Role Resource tree now showing

Role Resource tree now showing

Hello Everyone,

 

We are trying to assign roles to different users in Magento 2 it is not displaying roles resources tree in the dashboard. I will appreciate if any one could help please.

Steps to reproduce

  1. Steps to reproduce: Log in, go to System > User Roles. Add New Role

Expected result

  1. Expected result: When pressing 'Save Rule,' the new User Role is added.

Actual result

  1. There is no response when pressing the 'Save Role' button. Additionally, under the 'Role Resources' tab, there is no Resources tree when selecting the 'Custom' Resource Access option. There are no errors being produced, save for this which is available in the Chrome console:

VM1248:1 Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at getData (http://www.bharatkartonline.in/pub/static/adminhtml/Magento/backend/en_US/mage/apply/main.js:51:24)
at Array.map (native)
at Object.apply (http://www.bharatkartonline.in/pub/static/adminhtml/Magento/backend/en_US/mage/apply/main.js:67:18)
at HTMLDocument.bootstrap (http://www.bharatkartonline.in/pub/static/adminhtml/Magento/backend/en_US/mage/backend/bootstrap.js:...)
at fire (http://www.bharatkartonline.in/pub/static/adminhtml/Magento/backend/en_US/jquery.js:3099:30)
at Object.add [as done] (http://www.bharatkartonline.in/pub/static/adminhtml/Magento/backend/en_US/jquery.js:3145:7)
at jQuery.fn.init.jQuery.fn.ready (http://www.bharatkartonline.in/pub/static/adminhtml/Magento/backend/en_US/jquery.js:3379:25)
at jQuery.fn.init (http://www.bharatkartonline.in/pub/static/adminhtml/Magento/backend/en_US/jquery.js:2819:16)
at jQuery.fn.init (http://www.bharatkartonline.in/pub/static/adminhtml/Magento/backend/en_US/jquery/jquery-migrate.js:2...)