aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-07 10:20:58 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-07 10:20:58 +0000
commitbbd7faa1c3bdf26650f04d6f9ec4f5bbe0307809 (patch)
treee62417ef9e8a5637e21462c9b859912e7c8655f5 /mod/bookmarks
parentefe3d48d769b56eef5d74a938ea29be5a10b520b (diff)
downloadelgg-bbd7faa1c3bdf26650f04d6f9ec4f5bbe0307809.tar.gz
elgg-bbd7faa1c3bdf26650f04d6f9ec4f5bbe0307809.tar.bz2
bookmark edit form access options fixed for groups
git-svn-id: http://code.elgg.org/elgg/trunk@6654 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks')
-rw-r--r--mod/bookmarks/views/default/bookmarks/form.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/bookmarks/views/default/bookmarks/form.php b/mod/bookmarks/views/default/bookmarks/form.php
index ba83e6876..4d536ff3d 100644
--- a/mod/bookmarks/views/default/bookmarks/form.php
+++ b/mod/bookmarks/views/default/bookmarks/form.php
@@ -17,6 +17,7 @@ if(isset($vars['entity'])){
$access_id = $vars['entity']->access_id;
$tags = $vars['entity']->tags;
$notes = $vars['entity']->description;
+ $owner = get_entity($vars['entity']->container_guid);
$url = "action/bookmarks/edit";
}else{
//set some variables
@@ -93,7 +94,7 @@ if(isset($vars['entity'])){
<?php
//if it is a group, pull out the group access view
if(page_owner_entity() instanceof ElggGroup){
- $access_options = group_access_options(page_owner_entity());
+ $access_options = group_access_options($owner);
echo elgg_view('input/access', array('internalname' => 'access',
'value' => $access_id,
'options' => $access_options));