El Dorado

A full-stack community web application written in Ruby/Rails
File uploads for Admin only? « Wordpress « almost effortless
 
Tue, 22 Nov 2005, 3:05pm #1
takyano
New member
Registered: Nov, 2005
Last visit: Tue, 27 Dec 2005
Posts: 3

// for adding an admin menu under Manage -> Secure Files

function sf_add_pages() {
add_management_page('Secure Files', 'Secure Files', 8, __FILE__, 'sf_manage_page');
}

It would be nice to have the min user level as an option. Or use the WordPress File Upload min user level.

Offline
Tue, 29 Nov 2005, 11:22pm #2
Trevor
Administrator
Wait-ill-fix-it
Registered: Sep, 2005
Last visit: 20 minutes ago
Posts: 226

I could add this as an option as well, but what should the default be? I think level_6 is the thing for uploading, no?

Offline
Mon, 12 Dec 2005, 11:27pm #3
takyano
New member
Registered: Nov, 2005
Last visit: Tue, 27 Dec 2005
Posts: 3

If I have Secure Files would I want to have regular uploads?

Also, do users levels other than the admin need the privilege of setting the upload destination folder?

The File Uploads has an option for minimum user level, and that is usually 6

I would use the WP File Upload minimum user level setting, and duplicate the Allow File Uploads checkbox, so that the admin can disable regular uploads and only allow Secure Files uploads.

I am thinking that the upload folder setting should not be shown unless the user level is at least 9.

Thanks again

Offline