diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-04-22 16:31:38 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-04-22 16:31:38 -0700 |
commit | 2c324332f33fca688d782b55a51d38a793a18430 (patch) | |
tree | 0b878179388e6ba7f366a3719777a0a7ee0e6c73 /views/default/object/plugin.php | |
parent | 36ac28256269a6845a8e02de793c1ee1337ab298 (diff) | |
download | elgg-2c324332f33fca688d782b55a51d38a793a18430.tar.gz elgg-2c324332f33fca688d782b55a51d38a793a18430.tar.bz2 |
Fixes #4439. Redirecting if trying to view a plugin object outside of admin.
Diffstat (limited to 'views/default/object/plugin.php')
-rw-r--r-- | views/default/object/plugin.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/object/plugin.php b/views/default/object/plugin.php index 2f64cfcc9..5c7138e96 100644 --- a/views/default/object/plugin.php +++ b/views/default/object/plugin.php @@ -7,6 +7,10 @@ * */ +if (!elgg_in_context('admin')) { + forward('/', 403); +} + $plugin = $vars['entity']; if (!$plugin->isValid()) { |