Files
Orchard/src/Orchard.Web/Core/Themes/Permissions.cs
suhacan c61e9f4ae7 - Themes: permissions for administrative operations on the themes package.
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043817
2009-12-11 20:02:51 +00:00

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
};
}
}
}