Document Manager Security

2 posts, 0 answers
  1. Karim
    Karim avatar
    1 posts
    Member since:
    Aug 2007

    Posted 23 Aug 2007 Link to this post

    Is it possible to delete documents in the Document Manager?

    Is is possible to restrict access to specific folders from within the Document Manager?
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 24 Aug 2007 Link to this post

    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
Back to Top