Project

General

Profile

Attachment error 403 on a new container. How to set authorization ?

Added by Quentin Ambard over 14 years ago

Hi
I design a new plugin for Redmine.
I have created a new Class : Meeting.
Each meeting can have an attachment. On my databse the container_type = 'Meeting' for this type of attachments.

I can save on the database the new attachment, but when i try to read it(e.g. : /attachments/21/pdf_final.pdf) I got a 403 error : "You are not authorized to access this page."

How can I change the rules in order to allow the user to read this attachment ?
I have looked around the attachments model and acts_as_attachable.rb but I can't find a solution.
For exemple, I didn't understand where is defined the permission to see (or not) an issue attachment.

Thanks for your help !


Replies (1)

RE: Attachment error 403 on a new container. How to set authorization ? - Added by Quentin Ambard over 14 years ago

Ps :
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.5
Rack version 1.0
Rails version 2.3.4
Active Record version 2.3.4
Active Resource version 2.3.4
Action Mailer version 2.3.4
Active Support version 2.3.4
Application root /home/florian/redmine9
Environment development
Database adapter mysql
Database schema version 20091118092840

About your Redmine plugins
Redmine Meeting Report plugin 0.0.1
Subtasks plugin 0.0.1

    (1-1/1)