projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a comment to explain why VIEW_HIDDEN was not introduced in profile/ pages
[platal.git]
/
modules
/
profile.php
diff --git
a/modules/profile.php
b/modules/profile.php
index
42c93ed
..
09937a3
100644
(file)
--- a/
modules/profile.php
+++ b/
modules/profile.php
@@
-224,6
+224,8
@@
class ProfileModule extends PLModule
}
// Determines the access level at which the profile will be displayed.
}
// 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') {
if (Env::v('view') == 'public') {
$view = Visibility::VIEW_PUBLIC;
} else if (Env::v('view') == 'ax') {