Closed (fixed)
Project:
File admin
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2012 at 16:55 UTC
Updated:
16 Dec 2012 at 00:18 UTC
Jump to comment: Most recent file
A key missing piece from File admin is access control. Currently we can mark a file as unpublished, but we cannot restrict access to it. This functionality is waiting on #1227706: Add a file entity access API, which is getting very near to completion.
Meantime, the patch in this issue implements the new file access API and can be used for testing.
To test:
Note the file IDs of each of the files you created.
Now log out and test visiting each file as both anonymous user and as your test authenticated user. The file URLs will be in the form file/{fid} where {fid} is the ID of the file.
Expected results:
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | file_admin-access-restriction-1734882-1.patch | 2.56 KB | nedjo |
Comments
Comment #1
nedjoHere's a patch that can be used to test #1227706: Add a file entity access API.
I'll update the issue summary with test instructions.
Comment #2
nedjoDone in http://drupalcode.org/project/file_admin.git/commit/2d387dc.
Comment #3.0
(not verified) commentedUpdate with test instructions.