mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
Mapping permissions into default role stereotypes
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045975
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Orchard.Core.Settings {
|
||||
return new[] {
|
||||
new PermissionStereotype {
|
||||
Name = "Administrators",
|
||||
//Permissions = new[] {ChangeOwner}
|
||||
Permissions = new[] {ManageSettings}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@@ -21,7 +21,12 @@ namespace Orchard.Core.Themes {
|
||||
}
|
||||
|
||||
public IEnumerable<PermissionStereotype> GetDefaultStereotypes() {
|
||||
return Enumerable.Empty<PermissionStereotype>();
|
||||
return new[] {
|
||||
new PermissionStereotype {
|
||||
Name = "Administrators",
|
||||
Permissions = new[] {ManageThemes, ApplyTheme}
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user