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