Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Commit

Permalink
[FIXED #52] file does not get selected
Browse files Browse the repository at this point in the history
  • Loading branch information
w8tcha committed May 3, 2019
1 parent 9ca4385 commit e77f057
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions DNN 9/Browser/Browser.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ namespace WatchersNET.CKEditor.Browser
using DotNetNuke.Entities.Tabs;
using DotNetNuke.Entities.Users;
using DotNetNuke.Framework.Providers;
using DotNetNuke.Security;
using DotNetNuke.Security.Permissions;
using DotNetNuke.Security.Roles;
using DotNetNuke.Services.FileSystem;
Expand Down Expand Up @@ -100,7 +101,7 @@ public partial class Browser : Page
private string extensionWhiteList;

/// <summary>
/// The browser modus
/// The browser Modus
/// </summary>
private string browserModus;

Expand Down Expand Up @@ -2441,7 +2442,7 @@ private void ShowFileHelpUrl(string fileName, IFileInfo fileInfo)
try
{
this.SetDefaultLinkTypeText();
/*

// Enable Buttons
this.CheckFolderAccess(fileInfo.FolderId, true);

Expand Down Expand Up @@ -2501,7 +2502,7 @@ private void ShowFileHelpUrl(string fileName, IFileInfo fileInfo)
//////
this.FileId.Text = fileInfo.FileId.ToString();
this.lblFileName.Text = fileName;
/*
// Relative Url
this.rblLinkType.Items[0].Text = Regex.Replace(
this.rblLinkType.Items[0].Text,
Expand Down Expand Up @@ -3066,7 +3067,7 @@ private void CropNow_Click(object sender, EventArgs e)
// Show Link Panel
this.panLinkMode.Visible = true;
this.cmdClose.Visible = true;
this.panInfo.Visible = true;
this.panInfo.Visible = PortalSecurity.IsInRoles(this._portalSettings.AdministratorRoleName);

if (this.browserModus.Equals("Link"))
{
Expand Down Expand Up @@ -3103,7 +3104,7 @@ private void ResizeCancel_Click(object sender, EventArgs e)
// Show Link Panel
this.panLinkMode.Visible = true;
this.cmdClose.Visible = true;
this.panInfo.Visible = true;
this.panInfo.Visible = PortalSecurity.IsInRoles(this._portalSettings.AdministratorRoleName);
this.title.InnerText = string.Format("{0} - WatchersNET.FileBrowser", this.lblModus.Text);

if (this.browserModus.Equals("Link"))
Expand Down Expand Up @@ -3242,7 +3243,7 @@ private void ResizeNow_Click(object sender, EventArgs e)
// Show Link Panel
this.panLinkMode.Visible = true;
this.cmdClose.Visible = true;
this.panInfo.Visible = true;
this.panInfo.Visible = PortalSecurity.IsInRoles(this._portalSettings.AdministratorRoleName);
this.title.InnerText = string.Format("{0} - WatchersNET.FileBrowser", this.lblModus.Text);

if (this.browserModus.Equals("Link"))
Expand Down

0 comments on commit e77f057

Please sign in to comment.