Magento 1.6 - Can not save “Role Resources” for WebService

This is a known general bug in Magento 1.6. There is an easy fix for that issue.

After creating a new WebService role, the “Role Resources” are not being saved.

The problem and solution is published on Magento forum as well:

http://www.magentocommerce.com/boards/viewthread/247316/

You need to change one line in the following file:

app/code/core/Mage/Adminhtml/Block/Api/Rolesedit.php

Change the following line (41):

if (array_key_exists(strtolower($item->getResource_id()), $resources) && $item->getPermission() == 'allow') {

With this line:

if (array_key_exists(strtolower($item->getResource_id()), $resources) && $item->getApiPermission() == 'allow') {

That's it, you are all set. After doing that you will be able to save the Role's resource tree.

Thanks,
Remarkety team
Was this article helpful?
0 out of 0 found this helpful

Comments

2 comments

  • HI Joel

    You have written the source folder has been written incorrectly and should be;

    app/code/core/Mage/AdminHtml/Block/Api/Tab/RolesEdit.php

    0
  • Hey Robert,

    Thanks for letting us know. I believe that there is a different between some Magento versions.

    Which version do you refer to?

    Thanks,

    Joel

    0

Please sign in to leave a comment.