From 47b86299bbb172d3f55fef98dc7ba1c8d5e07414 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 11 Jun 2011 15:05:24 +0000 Subject: 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 --- mod/pages/views/default/object/page_top.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mod/pages/views/default/object') 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 { -- cgit v1.2.3