Skip to content

Commit 4ab0df5

Browse files
committed
SERVER-7572 SERVER-7126 Fix unit test compilation by not referencing internalSecurity in AuthorizationManager
1 parent 678e917 commit 4ab0df5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mongo/db/auth/authorization_manager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ namespace mongo {
250250
<< principal->getName(),
251251
0);
252252
}
253-
if (principal->getName() == internalSecurity.user) {
253+
// TODO: move internalSecurity into AuthorizationManager
254+
if (principal->getName() == "__system") {
254255
// Grant full access to internal user
255256
ActionSet allActions;
256257
allActions.addAllActions();

0 commit comments

Comments
 (0)