Fix: PluginWebHandler use AuthorizeDiscoUsers

This commit is contained in:
Gary Sharp
2013-05-16 19:46:04 +10:00
parent 06071679a9
commit 2eac245d3c
9 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0516.1911")] [assembly: AssemblyVersion("1.2.0516.1941")]
[assembly: AssemblyFileVersion("1.2.0516.1911")] [assembly: AssemblyFileVersion("1.2.0516.1941")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0516.1903")] [assembly: AssemblyVersion("1.2.0516.1941")]
[assembly: AssemblyFileVersion("1.2.0516.1903")] [assembly: AssemblyFileVersion("1.2.0516.1941")]
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0516.1900")] [assembly: AssemblyVersion("1.2.0516.1941")]
[assembly: AssemblyFileVersion("1.2.0516.1900")] [assembly: AssemblyFileVersion("1.2.0516.1941")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0516.1911")] [assembly: AssemblyVersion("1.2.0516.1941")]
[assembly: AssemblyFileVersion("1.2.0516.1911")] [assembly: AssemblyFileVersion("1.2.0516.1941")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0516.1911")] [assembly: AssemblyVersion("1.2.0516.1941")]
[assembly: AssemblyFileVersion("1.2.0516.1911")] [assembly: AssemblyFileVersion("1.2.0516.1941")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0516.1911")] [assembly: AssemblyVersion("1.2.0516.1941")]
[assembly: AssemblyFileVersion("1.2.0516.1911")] [assembly: AssemblyFileVersion("1.2.0516.1941")]
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0516.1911")] [assembly: AssemblyVersion("1.2.0516.1941")]
[assembly: AssemblyFileVersion("1.2.0516.1911")] [assembly: AssemblyFileVersion("1.2.0516.1941")]
@@ -10,7 +10,7 @@ namespace Disco.Web.Controllers
{ {
public partial class PluginWebHandlerController : Controller public partial class PluginWebHandlerController : Controller
{ {
[Authorize(Roles = "Admin")] [AuthorizeDiscoUsersAttribute(Disco.Models.Repository.User.Types.Admin)]
[OutputCache(Duration = 0, Location = System.Web.UI.OutputCacheLocation.None)] [OutputCache(Duration = 0, Location = System.Web.UI.OutputCacheLocation.None)]
public virtual ActionResult Index(string PluginId, string PluginAction) public virtual ActionResult Index(string PluginId, string PluginAction)
{ {
+2 -2
View File
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// //
// You can specify all the values or you can default the Revision and Build Numbers // You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("1.2.0516.1911")] [assembly: AssemblyVersion("1.2.0516.1941")]
[assembly: AssemblyFileVersion("1.2.0516.1911")] [assembly: AssemblyFileVersion("1.2.0516.1941")]