Merge pull request #25983 from overleaf/ii-managed-users-make-unmanaged-roles-access

[web] Prevent managers from removing/deleting themselves

GitOrigin-RevId: 9287dc06bab8024bf03fecff678a4118a9456919
This commit is contained in:
ilkin-overleaf
2025-06-13 08:05:46 +00:00
committed by Copybot
parent 277e59fbd5
commit cfc6ff0759
12 changed files with 181 additions and 6 deletions
@@ -175,6 +175,7 @@ describe('DropdownButton', function () {
beforeEach(function () {
cy.window().then(win => {
win.metaAttributesCache.set('ol-users', [user])
win.metaAttributesCache.set('ol-isUserGroupManager', true)
})
mountDropDownComponent(user, subscriptionId)
})
@@ -637,6 +638,7 @@ describe('DropdownButton', function () {
beforeEach(function () {
cy.window().then(win => {
win.metaAttributesCache.set('ol-users', [user])
win.metaAttributesCache.set('ol-isUserGroupManager', true)
})
mountDropDownComponent(user, subscriptionId)
})
@@ -687,6 +689,7 @@ describe('DropdownButton', function () {
beforeEach(function () {
cy.window().then(win => {
win.metaAttributesCache.set('ol-users', [user])
win.metaAttributesCache.set('ol-isUserGroupManager', true)
})
mountDropDownComponent(user, subscriptionId)
})