fix(export): Correct detection of admin mode (refs #5273)