reactioncommerce/reaction-admin

Unable to edit groups

Tumar opened this issue · 1 comments

Tumar commented

Prerequisites

  • Are you running the latest version?
  • Are you able to consistently reproduce the issue?
  • Did you search the issue queue for existing issue? Search issues

Issue Description

Can't edit group permission due to admin rights check. Method hasAdminAccess checks if user has admin permissions owner and admin. But it searches among account permissions which all have prefix reaction:legacy:.

Steps to Reproduce

Please provide starting context, i.e. logged in as a user, configure a particular payment method.

  1. Registered first user with groups system manager, owner, account-manager
  2. Logged in
  3. Opened Accounts page
  4. Tried to edit group, but couldn't

Possible Solution

Maybe check among account groups?

Versions

reaction-hydra,v3.0.0
reaction,v3.8.0
reaction-identity,v3.1.0
reaction-admin,v3.0.0-beta.7
example-storefront,v3.1.0

Tumar commented

Upgraded to v3.0.0-beta.9