Modify

Opened 9 years ago

Closed 8 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

Description

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

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by Radek Bartoň

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

comment:2 Changed 8 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:

[download:2@*]
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 8 years ago by Radek Bartoň

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

comment:4 Changed 8 years ago by Radek Bartoň

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.