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

Commit e77f057

Browse files
committed
[FIXED #52] file does not get selected
1 parent 9ca4385 commit e77f057

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

DNN 9/Browser/Browser.aspx.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ namespace WatchersNET.CKEditor.Browser
3939
using DotNetNuke.Entities.Tabs;
4040
using DotNetNuke.Entities.Users;
4141
using DotNetNuke.Framework.Providers;
42+
using DotNetNuke.Security;
4243
using DotNetNuke.Security.Permissions;
4344
using DotNetNuke.Security.Roles;
4445
using DotNetNuke.Services.FileSystem;
@@ -100,7 +101,7 @@ public partial class Browser : Page
100101
private string extensionWhiteList;
101102

102103
/// <summary>
103-
/// The browser modus
104+
/// The browser Modus
104105
/// </summary>
105106
private string browserModus;
106107

@@ -2441,7 +2442,7 @@ private void ShowFileHelpUrl(string fileName, IFileInfo fileInfo)
24412442
try
24422443
{
24432444
this.SetDefaultLinkTypeText();
2444-
/*
2445+
24452446
// Enable Buttons
24462447
this.CheckFolderAccess(fileInfo.FolderId, true);
24472448

@@ -2501,7 +2502,7 @@ private void ShowFileHelpUrl(string fileName, IFileInfo fileInfo)
25012502
//////
25022503
this.FileId.Text = fileInfo.FileId.ToString();
25032504
this.lblFileName.Text = fileName;
2504-
2505+
/*
25052506
// Relative Url
25062507
this.rblLinkType.Items[0].Text = Regex.Replace(
25072508
this.rblLinkType.Items[0].Text,
@@ -3066,7 +3067,7 @@ private void CropNow_Click(object sender, EventArgs e)
30663067
// Show Link Panel
30673068
this.panLinkMode.Visible = true;
30683069
this.cmdClose.Visible = true;
3069-
this.panInfo.Visible = true;
3070+
this.panInfo.Visible = PortalSecurity.IsInRoles(this._portalSettings.AdministratorRoleName);
30703071

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

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

32483249
if (this.browserModus.Equals("Link"))

0 commit comments

Comments
 (0)