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

Document Manager Security

1 Answer 272 Views
Let's talk about telerik (the good and the bad)
This is a migrated thread and some comments may be shown as answers.
Karim
Top achievements
Rank 1
Karim asked on 23 Aug 2007, 07:44 PM
Is it possible to delete documents in the Document Manager?

Is is possible to restrict access to specific folders from within the Document Manager?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Aug 2007, 06:47 AM
Hi Joseph,

RadEditor provides a flexible mechanism for enforcing user roles, which makes it suitable even for large enterprise-wide applications with multiple users and roles. By dynamically setting the DocumentsPaths , UploadDocumentsPaths, DeleteDocumentsPaths or the respective properties for Flash, Windows Media and Images, you can strictly control user access to resources, in accordance with their roles or profiles.


You can find more information in the following help articles:

Setting Folders, Enforcing Roles,
Documents,
Uploading images to the server (upload tab is disabled) - the same is valid for the rest of file browser dialogs


Here is a basic example on how to set dynamically the DocumentsPaths property depending on the logged user:

public string userRole;
public string[] docpath;

protected void Page_Load(object sender, EventArgs e)
{
    userRole = "Peter";
    switch (userRole)
    {
        case "Peter":
        docpath= new string[] { "~/Documents/Peter" };
            RadEditor1.DocumentsPaths = docpath;
            RadEditor1.UploadDocumentsPaths = docpath;
            RadEditor1.DeleteDocumentsPaths = docpath;
            break;
    case "Steve":
            docpath= new string[] { "~/Documents/Steve" };
            RadEditor1.DocumentsPaths = docpath;
            RadEditor1.UploadDocumentsPaths = docpath;
            RadEditor1.DeleteDocumentsPaths = docpath;
            break;
   default: /*will be able to see only the images, but not to upload them*/
            RadEditor1.DocumentsPaths = new string[] { "~/Documents" };
            break;
    }
}

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Let's talk about telerik (the good and the bad)
Asked by
Karim
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or