It is currently not possible to grant the "administer store" permission to a role and then have that role view the path "admin/store".

This is because in uc_store_admin_access(), it checks for the "administer_store" permission (note the underscore). This should be "administer store".

Comments

joelstein’s picture

Status: Active » Needs review
StatusFileSize
new515 bytes

  • TR committed d62e017 on 6.x-2.x authored by joelstein
    Issue #2501121 by joelstein: Cannot access admin/store with "administer...
tr’s picture

Status: Needs review » Fixed

Looks like a typo from the patch in #364307: Store Administration doesn't appear in admin menu bar.

Thanks for caching that. I committed your patch to both D7 and D6. D8 doesn't have this issue.

  • TR committed fa24235 on 7.x-3.x authored by joelstein
    Issue #2501121 by joelstein: Cannot access admin/store with "administer...

Status: Fixed » Needs work

The last submitted patch, 1: ubercart-administer-store-permission-2501121-1.patch, failed testing.

tr’s picture

Status: Needs work » Closed (fixed)

Not sure why the testbot reopened this ...