In many situations you only want anonymous users to fill in the webform defined by the Squeeze settings. Especially in combination with the filefield_stats module, the main reason of these 2 modules is probably download tracking.

So it would be nice if you could restrict the interception of nodes/download only to anonymous users via 1 easy setting. The attached patch does so.

Notes:
- I created an admin settings form in a separate admin.inc file.
- For this single checkbox it might look a bit overdone, but more features will follow that go in the admin settings screen.
- I created a new permission for this screen. You really have to be a "trusted admin" for access to this screen, not "just an editor".
- The nice thing about this setting is that future roles will also be unaffected by this module: precisely what you want if you enable this setting.
- I also added some doc comments to various functions. Same reason: more patches will follow and the code will grow.

CommentFileSizeAuthor
#1 1232544.patch2.68 KBfietserwin

Comments

fietserwin’s picture

StatusFileSize
new2.68 KB

Oops, I forgot the patch...

pavel.karoukin’s picture

Status: Needs review » Closed (fixed)