mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00

Changed Parse() to use lucene syntax Moved everything to Orchard.Indexing New filters for search --HG-- branch : dev
27 lines
1002 B
C#
27 lines
1002 B
C#
using System.Collections.Generic;
|
|
using Orchard.Security.Permissions;
|
|
|
|
namespace Orchard.Indexing {
|
|
public class Permissions : IPermissionProvider {
|
|
public static readonly Permission ManageSearchIndex = new Permission { Description = "Manage Search Index", Name = "ManageSearchIndex" };
|
|
|
|
public string ModuleName {
|
|
get {
|
|
return "Indexing";
|
|
}
|
|
}
|
|
|
|
public IEnumerable<Permission> GetPermissions() {
|
|
return new[] { ManageSearchIndex };
|
|
}
|
|
|
|
public IEnumerable<PermissionStereotype> GetDefaultStereotypes() {
|
|
return new[] {
|
|
new PermissionStereotype {
|
|
Name = "Administrator",
|
|
Permissions = new [] { ManageSearchIndex }
|
|
},
|
|
};
|
|
}
|
|
}
|
|
} |