rwheeler7864 / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

Clients can Delete thier files #83

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We really want to use this. It's great . It's easy for the employees here to 
learn and upload. but the clients being able to delete is an issue. Is there a 
'true' code I can change to 'false' to remove this action for just the clients?

Plenty of thanks. 
This is a nice small fast program. I am very impressed.

Original issue reported on code.google.com by trux...@gmail.com on 29 Aug 2011 at 7:36

GoogleCodeExporter commented 8 years ago
Hello and thanks for your comments! I couldn't reply before.
There's not a direct option to do that, but if you replace the file 
cftp/templates/default/template.php with the one that I'm attaching here you'll 
be able to delete files yourself, but the client won't. What I did was move the 
delete button up a few lines, so it's inside the statemente that checks if the 
viewer is SYSTEM USER or CLIENT, and show the buttons accordingly.
I suggest you download the new r83 file and then do this, as this is a custom 
file that's not implemented on the final download.
However, I'm taking this into consideration and I'll try to add an option for 
this.
Thanks

Original comment by i...@subwaydesign.com.ar on 11 Oct 2011 at 7:31

Attachments:

GoogleCodeExporter commented 8 years ago
Issue 79 has been merged into this issue.

Original comment by i...@subwaydesign.com.ar on 11 Oct 2011 at 7:33

GoogleCodeExporter commented 8 years ago
That template has a bit of a bug. Clients can no longer download files, while I 
use that template.
Here is what I created, it's a template that turns delete off, for everyone.

What I am doing now is rotating between the two as we need to delete customer 
files, I re-upload the file you created (was using default but that briefly put 
the delete back in the customer's hands, do what is needed and then switch back 
to mine. In this case, I only shortly cut off their ability to download. Bummer 
but it gets the job done.

The I.T. guy here and I are digging into this later today and we will see what 
we can put up.

Original comment by trux...@gmail.com on 11 Oct 2011 at 5:33

Attachments:

GoogleCodeExporter commented 8 years ago
You are right, the file wasn't useful, sorry about that.
I commited a new file (as r84) so that by default, clients cannot delete files.
Probably this will be selectable in the future.
Thanks for the suggestion.

Original comment by i...@subwaydesign.com.ar on 13 Oct 2011 at 3:58

GoogleCodeExporter commented 8 years ago
You have been more than helpful, Thank you very much for your efforts. You have 
done great by this. I really do appreciate your script, this is by far the most 
well planned program out there.
Thank you.

Original comment by trux...@gmail.com on 13 Oct 2011 at 4:26

GoogleCodeExporter commented 8 years ago

Original comment by i...@subwaydesign.com.ar on 12 Feb 2012 at 8:35