Add a comment to explain why VIEW_HIDDEN was not introduced in profile/ pages
authorNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Sat, 8 Mar 2014 14:12:37 +0000 (15:12 +0100)
committerNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Sat, 8 Mar 2014 14:12:56 +0000 (15:12 +0100)
modules/profile.php

index 42c93ed..09937a3 100644 (file)
@@ -224,6 +224,8 @@ class ProfileModule extends PLModule
         }
 
         // Determines the access level at which the profile will be displayed.
+        // Note: VIEW_HIDDEN can NOT be selected. The admins who want to read
+        // information need to use the "edit profile" pages instead.
         if (Env::v('view') == 'public') {
             $view = Visibility::VIEW_PUBLIC;
         } else if (Env::v('view') == 'ax') {