Under such regulations as the Secretary of the Navy prescribes, the basic allowance for subsistence of enlisted members of the naval service assigned to duty with and subsisting in an officers’ or other mess, afloat or ashore, may be paid to the mess to which they are assigned.