aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/forms/add.php7
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');