How can I allow guests to browse the projects, but not downloading a release?
If I enabled access to projects for guests, they also can download releases.
If I disable access to projects, they see only a blank page, thats not nice. Better would be to show the login for them...

Comments

aclight’s picture

Version: 5.x-1.1 » 5.x-1.x-dev
Component: Miscellaneous » Releases
Category: support » feature

If you have your files download method set to public, then anyone will be able to download your releases whether or not they are logged in. However, depending on what access settings you have for projects, the actual download links to those files might or might not be displayed.

As for a specific permission to access releases, that's not possible in project right now. However, looking at the code of project_release.module, I see this

/**
 * Implementation of hook_access().
 * @ingroup project_release_node
 *
 * TODO: Maybe we should add new permissions for accessing release
 * nodes, but for now, we're just using the existing project perms.
 */
function project_release_access($op, $node) {

I searched the current project module issues and didn't see a feature request for this already, so I'm changing this to a feature request.

I don't think this would be all that difficult to implement, but that would depend on how many new permissions were created. Also, I don't have any experience using private files, so there could be difficulties there that I am not aware of.