[BUGFIX] Check correctly for allowed localization action