aboutsummaryrefslogtreecommitdiff
path: root/pages/photos/image/upload.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2012-01-02 17:49:31 -0500
committercash <cash.costello@gmail.com>2012-01-02 17:49:31 -0500
commitbe94a34e652571eb61c3e306abfb7cce673823d7 (patch)
tree0984ee2d4735bc98a97c90ebfb40e206bc039d4f /pages/photos/image/upload.php
parent55bbbaef6a06d4177dcaa32cee94095db0ae4042 (diff)
downloadelgg-be94a34e652571eb61c3e306abfb7cce673823d7.tar.gz
elgg-be94a34e652571eb61c3e306abfb7cce673823d7.tar.bz2
fixed group albums
Diffstat (limited to 'pages/photos/image/upload.php')
-rw-r--r--pages/photos/image/upload.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/pages/photos/image/upload.php b/pages/photos/image/upload.php
index 526972a35..7d9db5ed8 100644
--- a/pages/photos/image/upload.php
+++ b/pages/photos/image/upload.php
@@ -21,14 +21,15 @@ if (elgg_get_plugin_setting('uploader', 'tidypics') != "disabled") {
}
$album = get_entity($album_guid);
-if (!$album || !$album->canEdit()) {
+if (!$album) {
// @todo
// throw warning and forward to previous page
forward(REFERER);
}
-if (!$album->canEdit()) {
+if (!$album->getContainerEntity()->canWriteToContainer()) {
// @todo have to be able to edit album to upload photos
+ forward(REFERER);
}
// set page owner based on container (user or group)