images permission problem
bkraegelin - December 12, 2008 - 10:33
| Project: | Windows Live Writer BlogAPI |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I did set up a new website just for blogging. I have Drupal 6.6, WLW BlogAPI 6.x-1.3 and WLW Beta (Build 14.0.5025.904) German with file attachment PlugIn.
Following modules are activated:
from core blog, no blogapi,
color, comment, database logging,
help, locale, menu, php filter,
taxonomy, update status, upload
additional administration menu, image,
image cache modules, inline, markdown filter,
search404, text size, print and pdf,
backup_migrate, blogtheme, code filter,
pathauto, token, WLW BlogAPI, external linksI have one user (and my root user), configured WLW, did give the user rights to manage his blog.
Blogging with WLW works, but I cannot upload any content. I activated upload module with user rights, didn't help.
Blogging with the browser works, uploading images with inline module works too.
How should I configure Drupal to get images (jpg, png) and files (pdf) uploaded?

#1
Discovered a bug in Drupals core module 'user.module', which has an inconsistency handling international languages for roles.
Patching user.module helped.
Corresponding Drupal issue is http://drupal.org/node/376734
#2
Core Drupal developer suggests a fix to core module blogapi and contributed module wlw_blogapi.
Line 389 should be:
$roles = array_intersect(array_keys(user_roles(FALSE, 'administer content with blog api')), array_keys($user->roles));This works immediately without any side effects. Changing user module needs more validation.
See http://drupal.org/node/376734
#3
Sorry, wrong status assigned.
#4
Close on no activity
#5
Just to inform that I tested the fixes provided here and they work but there is a catch, the user has to be explicitly added to a role. Example the first drupal user doesn't have a defined role and this fix doesn't work unless i assign a role to that user. I haven't tested setting permissions to the authenticated used role (the one the first user is assigned by default) because i don't want any register users except administrators to manage the site content.
Anyway thanks for the fixes.
#6
the code change n #2 has been committed to CVS
#7
Hi,
I'm using wlw_blogapi - 6.x-1.x-dev with Drupal 6.12.
I can post content and upload images. But, I got images permission problem.
It's working for admin but all other authenticated users can only see the content but not the uploaded images.
Does anyone know about this problem?
Thanks in advance.