diff --git a/DNN Platform/Library/UI/UserControls/URLControl.cs b/DNN Platform/Library/UI/UserControls/URLControl.cs index 0e6af8d609a..c8db3617498 100644 --- a/DNN Platform/Library/UI/UserControls/URLControl.cs +++ b/DNN Platform/Library/UI/UserControls/URLControl.cs @@ -920,7 +920,7 @@ protected void cmdSelect_Click(object sender, EventArgs e) protected void cmdUpload_Click(object sender, EventArgs e) { string strSaveFolder = this.cboFolders.SelectedValue; - this.LoadFolders("ADD"); + this.LoadFolders("WRITE"); if (this.cboFolders.Items.FindByValue(strSaveFolder) != null) { this.cboFolders.Items.FindByValue(strSaveFolder).Selected = true; @@ -944,7 +944,7 @@ protected void cmdUpload_Click(object sender, EventArgs e) else { // reset controls - this.LoadFolders("BROWSE,ADD"); + this.LoadFolders("BROWSE,WRITE"); this.cboFolders.Items.FindByValue(strSaveFolder).Selected = true; this.cboFiles.Visible = true; this.cmdUpload.Visible = false; @@ -1404,7 +1404,7 @@ private void DoRenderTypeControls() if (this.ViewState["FoldersLoaded"] == null || this.doReloadFolders) { - this.LoadFolders("BROWSE,ADD"); + this.LoadFolders("BROWSE,WRITE"); this.ViewState["FoldersLoaded"] = "Y"; }