diff options
author | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-18 11:40:30 +0000 |
---|---|---|
committer | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-18 11:40:30 +0000 |
commit | 066302acc2535a30668e802758697e4118649509 (patch) | |
tree | 5b918665ca09e9617a90f392810d237fe6343284 /views/default | |
parent | 4cbcfa1b08bc03327004ee32cb56a4bc713867f8 (diff) | |
download | elgg-066302acc2535a30668e802758697e4118649509.tar.gz elgg-066302acc2535a30668e802758697e4118649509.tar.bz2 |
access level tweak
git-svn-id: http://code.elgg.org@6078 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/forms/add.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/forms/add.php b/views/default/forms/add.php index cb83406ed..765bb9c09 100644 --- a/views/default/forms/add.php +++ b/views/default/forms/add.php @@ -24,7 +24,12 @@ set_page_owner($container_guid); $confirm_action = get_input('video_action'); $guid = get_input('guid'); -$access_id = get_input('access_id'); +if(page_owner_entity() instanceof ElggGroup){ + //if in a group, set the access level to default to the group + $access_id = page_owner_entity()->group_acl; +}else{ + $access_id = get_default_access(get_loggedin_user()); +} $title_videourl = get_input('title_videourl'); $Pagecontainer = get_input('page'); $get_addvideourl = get_input('add_videourl'); |