aboutsummaryrefslogtreecommitdiff
path: root/actions/friends/collections/edit.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-07-06 21:08:03 -0400
committerBrett Profitt <brett.profitt@gmail.com>2011-07-06 21:08:03 -0400
commit3e318bdeda941f78e9ae7b78bf337f67c4475849 (patch)
treea4074ed7288ac8682c0bd3296f1d36f281c9f0f7 /actions/friends/collections/edit.php
parentf068068add8645dc359fdcb00b7745a918c1c81e (diff)
downloadelgg-3e318bdeda941f78e9ae7b78bf337f67c4475849.tar.gz
elgg-3e318bdeda941f78e9ae7b78bf337f67c4475849.tar.bz2
Revert "Merged ACL fixes from 1.7 branch."
This reverts commit de111da23258cd2b513c8f4ab84712ee50272b23. Reverted because of problems in how 1.8 populates the access dropdown.
Diffstat (limited to 'actions/friends/collections/edit.php')
-rw-r--r--actions/friends/collections/edit.php20
1 files changed, 6 insertions, 14 deletions
diff --git a/actions/friends/collections/edit.php b/actions/friends/collections/edit.php
index 581b21353..b7fb716f2 100644
--- a/actions/friends/collections/edit.php
+++ b/actions/friends/collections/edit.php
@@ -1,23 +1,15 @@
<?php
/**
- * Elgg collection add page
+ * Friends collection edit action
*
- * @package Elgg
- * @subpackage Core
+ * @package Elgg.Core
+ * @subpackage Friends.Collections
*/
$collection_id = get_input('collection_id');
$friends = get_input('friend');
-// check it exists and we can edit
-if (!can_edit_access_collection($collection_id)) {
- system_message(elgg_echo('friends:collection:edit_failed'));
-}
+//chech the collection exists and the current user owners it
+update_access_collection($collection_id, $friends);
-if (update_access_collection($collection_id, $friends)) {
- system_message(elgg_echo('friends:collections:edited'));
-} else {
- system_message(elgg_echo('friends:collection:edit_failed'));
-}
-
-forward(REFERER); \ No newline at end of file
+exit;