Permission management implementation, logout component and panel.