Skip to content

Groups API getGroup and updateGroup aren't working for inactive groups with M2M #56

@rootelement

Description

@rootelement

These calls should allow an M2M with the right scopes to act just as an admin can.

currentUser !== 'M2M' && helper.hasAdminRole(currentUser)

const isAdmin = currentUser !== 'M2M' && helper.hasAdminRole(currentUser)

I believe the update is:
currentUser === 'M2M' || helper.hasAdminRole(currentUser)

But please confirm and test.

  • Make sure you pass lint.
  • Please confirm the swagger is up to date and valid (can be loaded into editor.swagger.io)
  • Make sure any necessary postman updates are made
  • If there are tests, please add/update tests for this
  • Make a PR against develop.

cc @cwdcwd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions