From a37433f279a3c968a4654a9cdcf329132d268143 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Tue, 16 Nov 2010 16:56:02 -0800 Subject: [PATCH] Allowing authenticated users to add comments http://orchard.codeplex.com/workitem/16307 --HG-- branch : dev --- .../Modules/Orchard.Comments/Permissions.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Permissions.cs b/src/Orchard.Web/Modules/Orchard.Comments/Permissions.cs index 3f64c192d..d98e195dd 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Permissions.cs +++ b/src/Orchard.Web/Modules/Orchard.Comments/Permissions.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Linq; using Orchard.Environment.Extensions.Models; using Orchard.Security.Permissions; @@ -29,7 +28,7 @@ namespace Orchard.Comments { return new[] { new PermissionStereotype { Name = "Administrator", - Permissions = new[] {ManageComments} + Permissions = new[] {ManageComments, AddComment} }, new PermissionStereotype { Name = "Anonymous", @@ -37,19 +36,19 @@ namespace Orchard.Comments { }, new PermissionStereotype { Name = "Editor", - //Permissions = new[] {} + Permissions = new[] {AddComment} }, new PermissionStereotype { Name = "Moderator", - //Permissions = new[] {} + Permissions = new[] {AddComment} }, new PermissionStereotype { Name = "Author", - //Permissions = new[] {} + Permissions = new[] {AddComment} }, new PermissionStereotype { Name = "Contributor", - //Permissions = new[] {} + Permissions = new[] {AddComment} }, }; }