aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-15 22:55:21 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-15 22:55:21 -0400
commiteb9f207972cf4ebeec71cf7e3a0e762df5d4c40a (patch)
tree7c1bb1259206a3c6a3a165e27d4c431d6bd9e896 /mod/file
parent81dac97890197658e5446e464604c2bc15903e5a (diff)
downloadelgg-eb9f207972cf4ebeec71cf7e3a0e762df5d4c40a.tar.gz
elgg-eb9f207972cf4ebeec71cf7e3a0e762df5d4c40a.tar.bz2
Fixes #4496, #4500 Refs #2814 Add consistent error message when content does not exist or user does not have access
Diffstat (limited to 'mod/file')
-rw-r--r--mod/file/pages/file/view.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/file/pages/file/view.php b/mod/file/pages/file/view.php
index a571c9d68..ec51b30e6 100644
--- a/mod/file/pages/file/view.php
+++ b/mod/file/pages/file/view.php
@@ -6,6 +6,10 @@
*/
$file = get_entity(get_input('guid'));
+if (!$file) {
+ register_error(elgg_echo('noaccess'));
+ forward('');
+}
$owner = elgg_get_page_owner_entity();