- $wiz->addPage('ProfileSettingGeneral', 'Général', 'general');
- $wiz->addPage('ProfileSettingAddresses', 'Adresses personnelles', 'adresses');
- $wiz->addPage('ProfileSettingGroups', 'Groupes X - Binets', 'poly');
- $wiz->addPage('ProfileSettingDecos', 'Décorations - Medailles', 'deco');
- $wiz->addPage('ProfileSettingJobs', 'Informations professionnelles', 'emploi');
- $wiz->addPage('ProfileSettingSkills', 'Compétences diverses', 'skill');
- $wiz->addPage('ProfileSettingMentor', 'Mentoring', 'mentor');
+ $wiz->addPage('ProfilePageGeneral', 'Général', 'general');
+ $wiz->addPage('ProfilePageAddresses', 'Adresses personnelles', 'adresses');
+ $wiz->addPage('ProfilePageJobs', 'Informations professionnelles', 'emploi');
+ if (S::user()->checkPerms(User::PERM_DIRECTORY_PRIVATE)) {
+ $wiz->addPage('ProfilePageGroups', 'Groupes X - Binets', 'poly');
+ }
+ $wiz->addPage('ProfilePageDecos', 'Décorations - Medailles', 'deco');
+ if (S::user()->checkPerms(User::PERM_DIRECTORY_PRIVATE)) {
+ $wiz->addPage('ProfilePageSkills', 'Compétences diverses', 'skill');
+ $wiz->addPage('ProfilePageMentor', 'Mentoring', 'mentor');
+ }