Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes an issue where URLControl checks upload permissions wrong #5461

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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