aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/views/default/object
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-11 15:05:24 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-11 15:05:24 +0000
commit47b86299bbb172d3f55fef98dc7ba1c8d5e07414 (patch)
tree979a2278aee7f0b29c20bf109c72fdbd44cd7ab3 /mod/pages/views/default/object
parent90960088561357dae617344cfbf6ae8fba955c42 (diff)
downloadelgg-47b86299bbb172d3f55fef98dc7ba1c8d5e07414.tar.gz
elgg-47b86299bbb172d3f55fef98dc7ba1c8d5e07414.tar.bz2
Fixes #3523 setting public write access to logged in for pages
git-svn-id: http://code.elgg.org/elgg/trunk@9172 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/views/default/object')
-rw-r--r--mod/pages/views/default/object/page_top.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/pages/views/default/object/page_top.php b/mod/pages/views/default/object/page_top.php
index 756c542b4..0ad377c7e 100644
--- a/mod/pages/views/default/object/page_top.php
+++ b/mod/pages/views/default/object/page_top.php
@@ -18,6 +18,13 @@ if (!$page) {
return TRUE;
}
+// pages used to use Public for write access
+if ($page->write_access_id == ACCESS_PUBLIC) {
+ // this works because this metadata is public
+ $page->write_access_id = ACCESS_LOGGED_IN;
+}
+
+
if ($revision) {
$annotation = $revision;
} else {