[Moin-user] Questions about attachments

Thomas Waldmann tw-public at gmx.de
Mon Jul 10 08:33:22 EDT 2006


> I went ahead and dove into the sources and implemented a solution that 
> works
> for me. I've added line
> acl_rights_valid = DefaultConfig.acl_rights_valid + ['attach']
> to my wikiconfig.py and copied over MoinMoin/action/AttachFile.py to
> data/plugin/action/ and replaced the checks to may.write and 
> may.delete to
> may.attach.
Hehe, yeah, this is a way to extend the acl system.
> This way the users that have 'read' access can read the attachments 
> but only
> users with 'attach' right may upload files or delete them.
Just make sure "attach" is not given to anon users, or some search 
engine or leech script might delete all your attachments!
> The only thing that is missing now is the email notification of 
> manipulation
> with the attachments but I am not sure how to do that. I do not know 
> 'who'
> is responsible for sending the notification. I kind of expected that 
> since
> the actions can be seen on RecentChanges a corresponding email would 
> be sent
> anyway... Where would be the best place to look into this?
Look into PageEditor.py.





More information about the Moin-user mailing list