Skip to content

Commit

Permalink
Fixes an issue where URLControl checks upload permissions wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
skamphuis committed Dec 29, 2022
1 parent fb9511e commit 8fde168
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DNN Platform/Library/UI/UserControls/URLControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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";
}

Expand Down

0 comments on commit 8fde168

Please sign in to comment.