mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00

--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043817
22 lines
812 B
C#
22 lines
812 B
C#
using System.Collections.Generic;
|
|
using Orchard.Security.Permissions;
|
|
|
|
namespace Orchard.Core.Themes {
|
|
public class Permissions : IPermissionProvider {
|
|
public static readonly Permission InstallUninstallTheme = new Permission { Description = "Installing or Uninstalling Themes", Name = "InstallUninstallTheme" };
|
|
public static readonly Permission SetCurrentTheme = new Permission { Description = "Setting the Current Theme", Name = "SetCurrentTheme" };
|
|
|
|
public string PackageName {
|
|
get {
|
|
return "Themes";
|
|
}
|
|
}
|
|
|
|
public IEnumerable<Permission> GetPermissions() {
|
|
return new List<Permission> {
|
|
SetCurrentTheme,
|
|
InstallUninstallTheme
|
|
};
|
|
}
|
|
}
|
|
} |