98 -  Unit based permissions for admin functions

Fixed the patient manager method for unit premissions.