From adfb66abb860fbdc63f11a62827e675044a10967 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Fri, 6 Jan 2023 19:07:14 +0530 Subject: Modify permissions to download --- vle_registration.inc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/vle_registration.inc b/vle_registration.inc index 6c076af..f0817d0 100644 --- a/vle_registration.inc +++ b/vle_registration.inc @@ -480,13 +480,7 @@ function view_animation_hackathon_vle_registrations() { function download_registration_details(){ global $user; /* get pending submissions to be approved */ - if ($user->uid == 0) - { - $msg = drupal_set_message(t('It is mandatory to login on this website to download the email IDs of the participants. If you are new user please create a new account first.'), 'error'); - //drupal_goto('/pssp'); - drupal_goto('user/login', array('query' => drupal_get_destination())); - return $msg; - } + $root_path = vle_registration_csv_path(); $my_submission_rows = array(); $query = db_select('animation_hackathon_vle_registration'); -- cgit