Skip to content

Commit e5e6555

Browse files
Hubtrick-Gittimbastin
authored andcommitted
remove dead logic
1 parent 680e648 commit e5e6555

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

accesscontrol/external_entity_provider_rbac_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func TestIsAllowed(t *testing.T) {
4949
thirdpartyIntegrationMock := mocks.NewIntegrationAggregate(t)
5050

5151
// Only mock rootAccessControl if we expect it to be called
52-
if tc.userID != "admin-token" && tc.object != shared.ObjectOrganization {
52+
if tc.object != shared.ObjectOrganization {
5353
rootAccessControl.On("IsAllowed", mock.Anything, tc.userID, tc.object, tc.action).Return(tc.mockResult, tc.mockErr)
5454
}
5555

0 commit comments

Comments
 (0)