Opened 16 years ago

Closed 15 years ago

#3461 closed enhancement (fixed)

RFE: User permissions by file

Reported by: anonymous Owned by: Radek Bartoň
Priority: normal Component: DownloadsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


It would be useful to be able to specify permission on a per download basis.

Attachments (0)

Change History (4)

comment:1 Changed 16 years ago by Radek Bartoň

Status: newassigned
Summary: User permissions by fileRFE: User permissions by file

comment:2 Changed 15 years ago by Radek Bartoň

Branch 0.12 with changeset r5690 now contains additional resource based checks for permissions. This can be combined with TracFineGrainedPermissions and FineGrainedPageAuthzEditorPlugin to get per-download permission control.

This is example of authzpolicy.conf which will disallow to download download with id 2 to user test:

test = ""

Hovewer, user test have to have DOWNLOADS_VIEW global permission to actually see list of downloads.

Current implemetation just disables links in table of downloads for downloads that user can't download and disallow direct download of them with apropriate URL. I'm aware that I'll have to disable links further in [download:<id>] macro but this is not done yet. I'm awating comments on what else shoud be controlled by fine grained permissions than just file downloads? Thanks for any suggestion.

comment:3 Changed 15 years ago by Radek Bartoň

r5752 finishes this and changes realm to [downloads:*].

comment:4 Changed 15 years ago by Radek Bartoň

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Radek Bartoň.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.