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-04-05 12:18:33 +00:00
committed by Copybot
parent d59b154f07
commit c881829e04
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 () {