Modify

Opened 6 years ago

Closed 5 years ago

#3461 closed enhancement (fixed)

RFE: User permissions by file

Reported by: anonymous Owned by: Blackhex
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 6 years ago by Blackhex

  • Status changed from new to assigned
  • Summary changed from User permissions by file to RFE: User permissions by file

comment:2 Changed 5 years ago by Blackhex

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 5 years ago by Blackhex

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

comment:4 Changed 5 years ago by Blackhex

  • Resolution set to fixed
  • Status changed from assigned to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.