From: Stéphane Jacob Date: Mon, 26 Sep 2011 08:20:43 +0000 (+0200) Subject: Networking are private and thus should not be available to ax directory view. X-Git-Tag: xorg/1.1.4~132 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=2a40c0bb529576c75ab756fc3dc62171d31cfebf;p=platal.git Networking are private and thus should not be available to ax directory view. Signed-off-by: Stéphane Jacob --- diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index b235080..7bc415d 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -557,7 +557,6 @@ class ProfilePageGeneral extends ProfilePage = new ProfileSettingEmail(); $this->settings['email_directory_new'] = new ProfileSettingEmailDirectory(); - $this->settings['networking'] = new ProfileSettingNetworking(); $this->settings['tels'] = new ProfileSettingPhones(); $this->settings['edus'] = new ProfileSettingEdu(); $this->settings['main_edus'] = new ProfileSettingMainEdu(); @@ -578,6 +577,7 @@ class ProfilePageGeneral extends ProfilePage } if (S::user()->checkPerms('directory_private') || S::user()->isMyProfile($this->owner)) { + $this->settings['networking'] = new ProfileSettingNetworking(); $this->settings['freetext'] = null; $this->settings['freetext_pub'] = $this->settings['photo_pub'] diff --git a/templates/profile/general.tpl b/templates/profile/general.tpl index edcc321..52278ea 100644 --- a/templates/profile/general.tpl +++ b/templates/profile/general.tpl @@ -342,6 +342,7 @@ {if t($email_error)} {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"} {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=false i="0"}{/if} + {if $viewPrivate || $isMe} Messageries, networking et sites web @@ -365,7 +366,6 @@ - {if $viewPrivate || $isMe}