Similarly to how weapons and armours indicate which classes can equip them, hitting 'select' in a magic shop should indicate which classes can cast them. Yes, characters will raise their hands, but this would show which not-in-party classes can use things, and which upgraded classes can.