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.
cc @cwdcwd