-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate
SiteOwner
permission and retain Administrator as system r…
…ole (#16781) Co-authored-by: Zoltán Lehóczky <[email protected]> Co-authored-by: Sébastien Ros <[email protected]> Co-authored-by: Georg von Kries <[email protected]>
- Loading branch information
1 parent
cff607a
commit c14840a
Showing
64 changed files
with
1,116 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/OrchardCore.Modules/OrchardCore.Recipes/RecipesPermissionProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using OrchardCore.Security.Permissions; | ||
|
||
namespace OrchardCore.Recipes; | ||
|
||
public sealed class RecipesPermissionProvider : IPermissionProvider | ||
{ | ||
private readonly IEnumerable<Permission> _allPermissions = | ||
[ | ||
RecipePermissions.ManageRecipes, | ||
]; | ||
public Task<IEnumerable<Permission>> GetPermissionsAsync() | ||
=> Task.FromResult(_allPermissions); | ||
|
||
public IEnumerable<PermissionStereotype> GetDefaultStereotypes() => | ||
[ | ||
new PermissionStereotype | ||
{ | ||
Name = OrchardCoreConstants.Roles.Administrator, | ||
Permissions = _allPermissions, | ||
}, | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.