| User | Post |
|
2:53 am September 10, 2011
| luntereiner
Member
| | | |
|
| posts 5 |
|
|
Hi all,
first let me tell RS is a great plugin.
I'm trying to manage accesses to a custom type post. Some groups can access some post.
All works fine execpt the attachments. If I don't filters attachment everyone (ie. public) can access the file with the url. If I turn on filter no body exept the admin can access the attachments.
Any idea?
I've read a lot of posts here but I don't found any solution.
I've read that somebody have the problem with the direct access to the uploads folder and his childs, personnaly I've added this line at the start of my main .htaccess file:
# prevent folder listing
IndexIgnore *
I've done several tests and that don't make mistake with RS. The problem described above is here with or without thes lines.
Thanks for all.
WP 3.1.3 | RS 1.3.46
Other plugs: ALO EasyMail Newsletter, NextGEN Gallery, qTranslate, Quick Page/Post Redirect, ThreeWP Broadcast,
|
|
|
1:52 am September 14, 2011
| luntereiner
Member
| | | |
|
| posts 5 |
|
|
I am surprised to be the only one with this problem … I recapitulate: The attachments to a page are not accessible even if the user is connected with the good rights. Any ideas? If it works on your configuration, can you tell me the options that you checked for this to work?
|
|
|
11:13 pm September 14, 2011
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
Can you try the current RS development code just so we're on the same page? I'm not seeing any problem with it filtering file attachments to custom posts for enabled Subscribers on WP 3.1 multisite.
Is your installation using wp-content/blogs.dir for the uploaded files? Role Scoper's site-specific file filtering rules are implemented via an .htaccess file in wp-content/blogs.dir/N/files/
What is the exact file url you are attempting to access? It should be the file URL as output in the html link href, not be the blogs.dir path.
|
|
|
1:09 am September 15, 2011
| luntereiner
Member
| | | |
|
| posts 5 |
|
|
I've yet tested with the dev code, but again my files attached to a restricted post are not accessible if the filter option is on.
For the main site of my network, the upload folder is wp-content/uploads (the default), for other it's wp-content/blogs.dir/N/files/ like you said. I've not tried RS with the other site of the network.
The file path I attempt to acces is for example:
http://[myexample].com/wp-content/uploads/2011/09/Apple_vs_Adobe.pdf
and the post url where the file is attached is:
http://myexample.com/ogbl_privatepage/acces-reserve-acceuil/page-2-for-cn-only/
|
|
|
8:38 am September 15, 2011
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
I'm not seeing any problem with file filtering for the main site of a network installation either.
It makes me wonder if this has something to do with your permalink structure. Does the problem still exist if you switch to Settings > Permalinks > "Day and name"?
What if you temporarily disable the other plugins and switch to default theme?
|
|
|
3:27 am September 16, 2011
| luntereiner
Member
| | | |
|
| posts 5 |
|
|
I've deactivated others plugins and changing the permalink but no changes, the problem still here.
I've made some debug and it seem that WP's function has_cap return always false. So for that reason, my logged user can access a page but not the attachment…
|
|
|
3:49 am September 30, 2011
| luntereiner
Member
| | | |
|
| posts 5 |
|
|
Finally because I've found any solution for my case, I've implemented another way to access my attached files.
The editor/admin put a shortocde in the post with the attached file reference with as result on post a link to a fresh securized download service (in the background).
And it works.
That solution provide the benefit to not work with htaccess for attachment.
Thanks Kevin for your support! 
|
|