feat(auth): add opaque bearer sessions
This commit is contained in:
@@ -108,6 +108,11 @@ test('budget center is visible to platform admin, budget monitor, and executive
|
||||
assert.equal(canAccessAppView({ roleCodes: ['manager'] }, 'budget'), false)
|
||||
})
|
||||
|
||||
test('system settings are visible to platform admin instead of business managers', () => {
|
||||
assert.equal(canAccessAppView({ isAdmin: true, roleCodes: ['manager'] }, 'settings'), true)
|
||||
assert.equal(canAccessAppView({ roleCodes: ['manager'] }, 'settings'), false)
|
||||
})
|
||||
|
||||
test('budget edit and department switching are limited to admin and senior finance', () => {
|
||||
assert.equal(canEditBudgetCenter({ username: 'admin', roleCodes: ['manager'] }), true)
|
||||
assert.equal(canSwitchBudgetDepartments({ username: 'admin', roleCodes: ['manager'] }), true)
|
||||
|
||||
Reference in New Issue
Block a user