mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Allowing authenticated users to add comments
http://orchard.codeplex.com/workitem/16307 --HG-- branch : dev
This commit is contained in:
parent
d050b9af63
commit
a37433f279
@ -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}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user