diff --git a/src/Orchard.Web/Packages/Orchard.Comments/Orchard.Comments.csproj b/src/Orchard.Web/Packages/Orchard.Comments/Orchard.Comments.csproj
index 5a824d86c..14d7989b4 100644
--- a/src/Orchard.Web/Packages/Orchard.Comments/Orchard.Comments.csproj
+++ b/src/Orchard.Web/Packages/Orchard.Comments/Orchard.Comments.csproj
@@ -62,6 +62,7 @@
+
diff --git a/src/Orchard.Web/Packages/Orchard.Comments/Permissions.cs b/src/Orchard.Web/Packages/Orchard.Comments/Permissions.cs
new file mode 100644
index 000000000..aa77f859c
--- /dev/null
+++ b/src/Orchard.Web/Packages/Orchard.Comments/Permissions.cs
@@ -0,0 +1,30 @@
+using System.Collections.Generic;
+using Orchard.Security.Permissions;
+
+namespace Orchard.Comments {
+ public class Permissions : IPermissionProvider {
+ public static readonly Permission AddComment = new Permission { Description = "Adding a Comment", Name = "AddComment" };
+ public static readonly Permission AddCommentWithoutValidation = new Permission { Description = "Adding a Comment without validation", Name = "AddCommentWithoutValidation" };
+ public static readonly Permission CloseComment = new Permission { Description = "Closing Comments", Name = "CloseComment" };
+ public static readonly Permission CloseCommentOnOwnItems = new Permission { Description = "Closing Comments on own items", Name = "CloseCommentOnOwnItems" };
+ public static readonly Permission ModerateComment = new Permission { Description = "Moderating Comments", Name = "ModerateComment" };
+ public static readonly Permission ModerateCommentOnOwnItems = new Permission { Description = "Moderating Comments On Own Items", Name = "ModerateCommentOnOwnItems" };
+
+ public string PackageName {
+ get {
+ return "Comments";
+ }
+ }
+
+ public IEnumerable GetPermissions() {
+ return new List {
+ AddComment,
+ AddCommentWithoutValidation,
+ CloseComment,
+ CloseCommentOnOwnItems,
+ ModerateComment,
+ ModerateCommentOnOwnItems
+ };
+ }
+ }
+}