Re: DNN Provider 4.0 - Customize Toolbar by Role?

  •  11-13-2006, 9:16 PM

    Re: DNN Provider 4.0 - Customize Toolbar by Role?

    Jerry,
     
    >>but is there a way to without adjusting the web.config for every role to enable roles to only see/upload to a specific folder?
     
    For your situation, you need to modify the web.config file and add the custom security setting for your custom role. Another solution is modifying the provider project and recompile the project.
     
    How to add security settting for a custom role?
     
    Let us assume your custom role name is: Author.
     
    Just copy the following code into the web.config file.
     

         Author_AutoConfigure = "Full"
         Author_SecurityPolicyFile = "admin.config"
         Author_TemplateItemList = ""
         Author_DisableItemList = ""
         Author_AllowPasteHtml  ="true"
         Author_EditorOnPaste  = "default"
         Author_ReadOnly = "false"
         Author_ShowBottomBar ="true"
         Author_ShowHtmlMode  ="true"
         Author_ShowPreviewMode  ="true"
         Author_EnableStripScriptTags  ="false" 
         Author_EnableContextMenu    ="true"  
         Author_EnableContextMenuEditing  = "true"  
         Author_EnableContextMenuFormat   = "true"
         Author_EnableContextMenuInsert  = "true"
         Author_EnableContextMenuInsertAdvanced  = "true"
         Author_EnableContextMenuInsertFiles = "true"
         Author_EnableContextMenuInsertForms = "true"
         Author_EnableContextMenuRelative = "true"
         Author_EnableContextMenuTags = "true"
         Author_EnableContextMenuVerbs = "true"
     
    Please note that in the above code the security policy file used by "Author" is the admin.config.
     
    You can easiy create a custom security policy file and assign it to "Author".
     
    Hope it helps.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread