Closed (fixed)
Project:
OG User Roles
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
8 Nov 2008 at 16:58 UTC
Updated:
23 Mar 2009 at 09:10 UTC
I'm trying to upload a file in a comment, but when I click attach, IE will show a JS error.
In Drupal logs, I see an "Access Denied" error on comment_upload/js.
I tried uploading the file as admin user and it worked, so seems like a permission issue. The user I'm having problems with has access comments/post comments and upload files permission granted.
What permissions are needed for a user to upload files to comments?
Comments
Comment #1
tborrome commentedFigured out the cause - I only configure upload files permission for group membership (through og_user_roles). Looks like I need to grant upload files permission system-wide to get comment upload to work. Problem with this is that all users are able to upload files to comments site-wide. I need comment upload functionality only available to certain roles within groups.
Better to have a specific permission for "upload file to comments" that I can set at the group level.
Turning this into an enhancement request for this needed functionality.
Comment #2
ultimateboy commentedCurrently, comment_upload does not work if a user only has permissions to upload via a group-specific role. But I could not tell you if this is an issue with comment_upload or og_user_roles, please move the issue accordingly. But to work around this issue in the mean time, you must assign a global role which has the "upload files to comments" perm. I will keep this as a feature request, as it is integration with another module.
Comment #3
sunMoving to OG User Roles.
Comment #4
somebodysysop commentedThis is an OGUR issue. When comment_upload processes a file attachment, it makes a call to /comment-upload/js which is outside of group context. Group roles are only valid within group context. Needed to modify OGUR to maintain group context when this call is made.
Submitted code changes to CVS. Should be available for download in .dev release in about 12 hours from now.