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

Documentation not clear on how to enable downloads for people not logged in #72

Open
GoogleCodeExporter opened this issue Mar 26, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link


The documentation isn't really clear on the permission settings... I cannot 
figure out how to allow users who are not logged in to actually download 
attachments.  They can see attachments, but not download them.

I tried this:

$wgPageAttachment_permissions['view'           ]['allowed'] = true;
$wgPageAttachment_permissions['download'       ]['allowed'] = true;
$wgPageAttachment_permissions['viewHistory'    ]['allowed'] = true;

$wgPageAttachment_permissions['view'           ]['group']['*'    ] = true;
$wgPageAttachment_permissions['download'       ]['group']['*'    ] = true;
$wgPageAttachment_permissions['viewHistory'    ]['group']['*'    ] = true;

I also added this (although I've no idea what it means):

$wgPageAttachment_permissions['view'           ]['loginRequired'] = false;
$wgPageAttachment_permissions['download'       ]['loginRequired'] = false;
$wgPageAttachment_permissions['viewHistory'    ]['loginRequired'] = false;

But nothing works.

I don't know if this is a bug or a problem with the documentation.

  PageAttachment version  : 3.1.0
  MediaWiki version       : 1.19
  PHP version             : 5.3.3
  Database name           : MySQL
  Database version        : 5.1.66
  Operating System name   : Debian GNU/Linux
  Operating System version: 6.0.7

Original issue reported on code.google.com by [email protected] on 11 Apr 2013 at 11:19

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