Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Anonymous users to generate EML Feeds #10

Open
GoogleCodeExporter opened this issue May 21, 2015 · 1 comment
Open

Allow Anonymous users to generate EML Feeds #10

GoogleCodeExporter opened this issue May 21, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Problem:
Although an EML Feed button is available to anonymous users, if they click on 
it they are instructed to "Please login in".  Ideally, access to EML feeds will 
be controlled by Views settings.  The proposed patch allows Anonymous users to 
download EML feeds.

Version: Views_bonus_eml March 24th, 2011

The attached patch is an implementation of these instructions from a module 
developer:

I put this code to prevent not-logged-in users to create Drupal2EML feed. Now I 
understand, that you want allow them to do so. I'll remove that part of code.
"
    if (empty($user->uid)) {
      drupal_set_message('Please login in');
      drupal_goto('user/login', $current_destination);
    }
"

Following code redirects from eml_export to eml_config if there is no "site 
acronym" in EML config settings. Please, uncommented this part and change 
"elseif" to "if" (because first part still commented out). We can change 
condition if you want. Once config is filled out (for now means "site acronym" 
does exist) one can reach EML config through its URL.

"
elseif (!$last_settings['last_acronym']) {
      drupal_set_message("Please provide the site specific settings");
      drupal_goto('eml_config', $current_destination);
    }
"

Original issue reported on code.google.com by umbs...@gmail.com on 28 Jun 2011 at 7:58

Attachments:

@GoogleCodeExporter
Copy link
Author

An additional test confirms that the EML Feed obeys Access rules as configured 
on the administration page of the View in question.

Original comment by umbs...@gmail.com on 28 Jun 2011 at 8:05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant