Show preferences rather than profile/edit when profile edit has been disabled.
Fix bug in RoleModel->GetPermissions().