@@ -39,6 +39,7 @@ namespace WatchersNET.CKEditor.Browser
39
39
using DotNetNuke . Entities . Tabs ;
40
40
using DotNetNuke . Entities . Users ;
41
41
using DotNetNuke . Framework . Providers ;
42
+ using DotNetNuke . Security ;
42
43
using DotNetNuke . Security . Permissions ;
43
44
using DotNetNuke . Security . Roles ;
44
45
using DotNetNuke . Services . FileSystem ;
@@ -100,7 +101,7 @@ public partial class Browser : Page
100
101
private string extensionWhiteList ;
101
102
102
103
/// <summary>
103
- /// The browser modus
104
+ /// The browser Modus
104
105
/// </summary>
105
106
private string browserModus ;
106
107
@@ -2441,7 +2442,7 @@ private void ShowFileHelpUrl(string fileName, IFileInfo fileInfo)
2441
2442
try
2442
2443
{
2443
2444
this . SetDefaultLinkTypeText ( ) ;
2444
- /*
2445
+
2445
2446
// Enable Buttons
2446
2447
this . CheckFolderAccess ( fileInfo . FolderId , true ) ;
2447
2448
@@ -2501,7 +2502,7 @@ private void ShowFileHelpUrl(string fileName, IFileInfo fileInfo)
2501
2502
//////
2502
2503
this . FileId . Text = fileInfo . FileId . ToString ( ) ;
2503
2504
this . lblFileName . Text = fileName ;
2504
-
2505
+ /*
2505
2506
// Relative Url
2506
2507
this.rblLinkType.Items[0].Text = Regex.Replace(
2507
2508
this.rblLinkType.Items[0].Text,
@@ -3066,7 +3067,7 @@ private void CropNow_Click(object sender, EventArgs e)
3066
3067
// Show Link Panel
3067
3068
this . panLinkMode . Visible = true ;
3068
3069
this . cmdClose . Visible = true ;
3069
- this . panInfo . Visible = true ;
3070
+ this . panInfo . Visible = PortalSecurity . IsInRoles ( this . _portalSettings . AdministratorRoleName ) ;
3070
3071
3071
3072
if ( this . browserModus . Equals ( "Link" ) )
3072
3073
{
@@ -3103,7 +3104,7 @@ private void ResizeCancel_Click(object sender, EventArgs e)
3103
3104
// Show Link Panel
3104
3105
this . panLinkMode . Visible = true ;
3105
3106
this . cmdClose . Visible = true ;
3106
- this . panInfo . Visible = true ;
3107
+ this . panInfo . Visible = PortalSecurity . IsInRoles ( this . _portalSettings . AdministratorRoleName ) ;
3107
3108
this . title . InnerText = string . Format ( "{0} - WatchersNET.FileBrowser" , this . lblModus . Text ) ;
3108
3109
3109
3110
if ( this . browserModus . Equals ( "Link" ) )
@@ -3242,7 +3243,7 @@ private void ResizeNow_Click(object sender, EventArgs e)
3242
3243
// Show Link Panel
3243
3244
this . panLinkMode . Visible = true ;
3244
3245
this . cmdClose . Visible = true ;
3245
- this . panInfo . Visible = true ;
3246
+ this . panInfo . Visible = PortalSecurity . IsInRoles ( this . _portalSettings . AdministratorRoleName ) ;
3246
3247
this . title . InnerText = string . Format ( "{0} - WatchersNET.FileBrowser" , this . lblModus . Text ) ;
3247
3248
3248
3249
if ( this . browserModus . Equals ( "Link" ) )
0 commit comments