01-13-2010, 11:32 AM
orangos
2004-11-11 09:26:17 PST
Is there a way to prevent non-admin users from uploading files at all, please?
I suppose it'd be possible to write a hack to hide the 'Add file' link depending on user type, but that seems a little kludgy...
Many thanks.
logart
2004-11-11 09:34:56 PST
That feature is not included. Anyone with login perms can add a file (although they are not available until a reviewer authorizes them).
You could add a config.php entry for admin_only_upload = yes and then add a test in add.php to see of that is set, if so, only allow admin.
steve
logart
2004-11-11 09:35:41 PST
By the way, if you do make that change, I would like the changes also so I can add it to the next release.
steve
orangos
2004-11-11 09:38:48 PST
I'd be delighted to try, though my php skills are crunch to say the least.
orangos
2004-11-11 09:40:00 PST
OK. That sounds like a good route. Thanks.
2004-11-11 09:26:17 PST
Is there a way to prevent non-admin users from uploading files at all, please?
I suppose it'd be possible to write a hack to hide the 'Add file' link depending on user type, but that seems a little kludgy...
Many thanks.
logart
2004-11-11 09:34:56 PST
That feature is not included. Anyone with login perms can add a file (although they are not available until a reviewer authorizes them).
You could add a config.php entry for admin_only_upload = yes and then add a test in add.php to see of that is set, if so, only allow admin.
steve
logart
2004-11-11 09:35:41 PST
By the way, if you do make that change, I would like the changes also so I can add it to the next release.
steve
orangos
2004-11-11 09:38:48 PST
I'd be delighted to try, though my php skills are crunch to say the least.
orangos
2004-11-11 09:40:00 PST
OK. That sounds like a good route. Thanks.