This is a migrated thread and some comments may be shown as answers.

[Solved] Radeditor dnn

1 Answer 97 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 10 Aug 2009, 10:06 AM
Hi

I would like to configure my radeditor manager dialogs in dotnetnuke, so the user can upload files, but not rename, move and delete files.

I user my own provider, but when i set the upload path it also enables the rename, can i prevent this ?

A suggestion for development, make a config.xml to handle the dialogs, like on the editor. That would make more flexible.

Thanks for an awesome product :-)
 
Best regards
Thomas

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 12 Aug 2009, 11:54 AM
Hi Thomas,

By default, our editor uses the DNN security permissions, which unfortunately are only read and write - there are no separate permissions for delete/rename. That being said, you can easily modify the provider code and disable the delete permissions, which will effectively disable renaming/moving as well. Open the file RadEditorProvider.vb in the ~\App_Code\TelerikWebUI\ folder in your DNN web site and change the SetContentPaths method:

Private Sub SetContentPaths(ByVal manager As FileManagerDialogConfiguration, ByVal readPaths As String(), ByVal writePaths As String()) 
    manager.ViewPaths = readPaths 
    manager.UploadPaths = writePaths 
    'manager.DeletePaths = writePaths 
End Sub 

by commenting out the last line.

Sincerely yours,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Thomas
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or