Finished leaves/user and leaves/manager core