Menu

Commit [r5580]  Maximize  Restore  History

Follow-up to the attachment permission refactoring code ([5561:5572/trunk]), according to the feedback given by athomas:

A better solution would be to add ATTACHMENT_VIEW, ATTACHMENT_DELETE,
ATTACHMENT_CREATE and ATTACHMENT_ADMIN permissions and create a
`LegacyAttachmentPolicy` `IPermissionPolicy` implementation (enabled by
default). This implementation would effectively implement the
behaviour of _perm_maps - that of mapping ATTACHMENT_* checks to the
appropriate legacy permission (eg. ATTACHMENT_VIEW in the context of
wiki:WikiStart would be mapped to WIKI_VIEW, etc.).

cboos 2007-06-05

changed /trunk/trac/attachment.py
changed /trunk/trac/perm.py
changed /trunk/trac/templates/attachment.html
changed /trunk/trac/templates/macros.html
changed /trunk/trac/ticket/templates/milestone_view.html
changed /trunk/trac/ticket/templates/ticket.html
/trunk/trac/attachment.py Diff Switch to side-by-side view
Loading...
/trunk/trac/perm.py Diff Switch to side-by-side view
Loading...
/trunk/trac/templates/attachment.html Diff Switch to side-by-side view
Loading...
/trunk/trac/templates/macros.html Diff Switch to side-by-side view
Loading...
/trunk/trac/ticket/templates/milestone_view.html Diff Switch to side-by-side view
Loading...
/trunk/trac/ticket/templates/ticket.html Diff Switch to side-by-side view
Loading...
Auth0 Logo