X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile.php;fp=modules%2Fprofile.php;h=b7e70cf93c7cf41646e9117df5f71ad85006c456;hb=07e4a9a091ac34c84129c230cde455de34e1ae91;hp=467a99c49ec591b92cebeccc365c99d9e8a6a095;hpb=5db48c8976b252d91e3a524ea3d35a3364df3c24;p=platal.git diff --git a/modules/profile.php b/modules/profile.php index 467a99c..b7e70cf 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -135,10 +135,10 @@ class ProfileModule extends PLModule if (!$user->hasProfile()) { return PL_NOT_FOUND; } else { - $profile = $user->profile(); + $profile = $user->profile(false,0,Visibility::get(Visibility::VIEW_ADMIN)); } } else { - $profile = Profile::get($hrpid); + $profile = Profile::get($hrpid,0,Visibility::get(Visibility::VIEW_ADMIN)); } if (!$profile) {