Merge pull request #6729 from overleaf/jpa-cleanup-staff-access

[web] admin privilege does not imply staffAccess

GitOrigin-RevId: 89760c7a9a8f0b0c82ebee40ca3236e9894ab9fa
This commit is contained in:
Jakob Ackermann
2022-03-31 11:35:51 +01:00
committed by Copybot
parent ff2bf58a84
commit aa07f51fd9
3 changed files with 1 additions and 9 deletions
@@ -43,7 +43,7 @@ describe('AuthorizationHelper', function () {
it('with admin user', function () {
const user = { isAdmin: true }
this.AdminAuthorizationHelper.hasAdminAccess.returns(true)
expect(this.AuthorizationHelper.hasAnyStaffAccess(user)).to.be.true
expect(this.AuthorizationHelper.hasAnyStaffAccess(user)).to.be.false
})
it('with staff user', function () {