The CommerceReturnUIController demands that a user has the permission "administer commerce returns" to be able to visit the settings page for this module. That permission does not exist in this module which makes it impossible for non-user-1 users to visit this page. There is a permission named "configure return settings" which seems reasonable.

I will provide a patch soon.

To reproduce the problem:

  1. Install this module and dependencies.
  2. Create a new user role that has the "configure return settings" permission.
  3. Create a new user with that new role and switch to that new user.
  4. Attempt to visit the path: /admin/commerce/config/return

Comments

daggerhart created an issue. See original summary.

daggerhart’s picture

Assigned: daggerhart » Unassigned
Status: Active » Needs review
StatusFileSize
new800 bytes

This patch changes the admin UI controller to use the correct permission for the settings page.

daggerhart’s picture

Issue summary: View changes
akash.addweb’s picture

Status: Needs review » Needs work
StatusFileSize
new139.04 KB

@daggerhart, Thanks for finding this issue, I checked it using simplytest.me & I faced one error that attached in the screenshot, Can you please give me an idea is it really an issue or I missed something?

daggerhart’s picture

Status: Needs work » Needs review

Thanks Ronak, but I think that's an unrelated problem. What you've found is that this module doesn't competely define all of its dependencies. I've found that to be true with many commerce related contrib modules, but I don't think we're going to solve that problem here.

Placing this back in Needs Review for a maintainer or someone who is using the module on a site to take a look at. I'll file a separate issued for this module defining it's dependencies a bit more explicitly.