Skip to content

Commit 339dee8

Browse files
committed
v1.1,0
1 parent 1731f6d commit 339dee8

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

Components/AjaxProvider.cs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,21 @@ public override string ProcessCommand(string paramCmd, HttpContext context, stri
3131

3232
var strOut = "OS_PayPlug Ajax Error";
3333

34-
// NOTE: The paramCmd MUST start with the plugin ref. in lowercase. (links ajax provider to cmd)
35-
switch (paramCmd)
34+
if (PluginUtils.CheckPluginSecurity(PortalSettings.Current.PortalId, "ospayplug"))
3635
{
37-
case "ospayplug_savesettings":
38-
strOut = objCtrl.SavePluginSinglePageData(context);
39-
break;
40-
case "ospayplug_selectlang":
41-
objCtrl.SavePluginSinglePageData(context);
42-
var nextlang = ajaxInfo.GetXmlProperty("genxml/hidden/nextlang");
43-
var info = objCtrl.GetPluginSinglePageData("OSPayPalpayment", "OSPayPalPAYMENT", nextlang);
44-
strOut = NBrightBuyUtils.RazorTemplRender("settingsfields.cshtml", 0, "", info, "/DesktopModules/NBright/OS_PayPlug", "config", nextlang, StoreSettings.Current.Settings());
45-
break;
36+
// NOTE: The paramCmd MUST start with the plugin ref. in lowercase. (links ajax provider to cmd)
37+
switch (paramCmd)
38+
{
39+
case "ospayplug_savesettings":
40+
strOut = objCtrl.SavePluginSinglePageData(context);
41+
break;
42+
case "ospayplug_selectlang":
43+
objCtrl.SavePluginSinglePageData(context);
44+
var nextlang = ajaxInfo.GetXmlProperty("genxml/hidden/nextlang");
45+
var info = objCtrl.GetPluginSinglePageData("OSPayPalpayment", "OSPayPalPAYMENT", nextlang);
46+
strOut = NBrightBuyUtils.RazorTemplRender("settingsfields.cshtml", 0, "", info, "/DesktopModules/NBright/OS_PayPlug", "config", nextlang, StoreSettings.Current.Settings());
47+
break;
48+
}
4649
}
4750

4851
return strOut;

DNNpackager.dnnpack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<root>
2-
<version>1.0.0</version>
2+
<version>1.1.0</version>
33
<websitedestrelpath>/DesktopModules/NBright/OS_PayPlug</websitedestrelpath>
44
<websitedestbinrelpath>/bin</websitedestbinrelpath>
55
<!-- Include only files that match the regular expression -->

OS_PayPlug.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@
4949
<Reference Include="NBrightDNN">
5050
<HintPath>..\NBrightBuy\_external\NBrightDNN.dll</HintPath>
5151
</Reference>
52-
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
53-
<HintPath>packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
52+
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
53+
<SpecificVersion>False</SpecificVersion>
54+
<HintPath>..\NBrightBuy\_external\Newtonsoft.Json.dll</HintPath>
5455
</Reference>
5556
<Reference Include="RazorEngine">
5657
<HintPath>..\NBrightBuy\_external\RazorEngine.dll</HintPath>

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("1.1.0.0")]
36+
[assembly: AssemblyFileVersion("1.1.0.0")]

0 commit comments

Comments
 (0)