Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move permissions to its own class to avoid module to module reference #16769

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

hishamco
Copy link
Member

@hishamco hishamco commented Sep 20, 2024

This pull request focuses on updating permission references across multiple files to use new standardized permission classes. The changes are primarily refactoring to replace the old permission references with the new ones.

Fixes #16766

@hishamco hishamco marked this pull request as ready for review November 5, 2024 21:30
@MikeAlhayek
Copy link
Member

@hishamco please document the changes in this PR. We need to make sure that developers have a migration path from one class to another.

For example:

The ManageAdminSettings permission has been relocated from AdminPermissions.ManageAdminSettings to PermissionsAdminSettings.ManageAdminSettings.

This way developers have a reference to refer to if there are using these permissions into their project.

Copy link
Contributor

This pull request has merge conflicts. Please resolve those before requesting a review.

# Conflicts:
#	src/OrchardCore.Modules/OrchardCore.Search.Elasticsearch/PermissionProvider.cs
#	src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/ElasticsearchIndexPermissionHelper.cs
@MikeAlhayek
Copy link
Member

@hishamco to avoid keep resolving conflicts, please document the changes so we can finalizing it.

@hishamco
Copy link
Member Author

Mentioned all relocated permissions will make this too long, we could write one statement and one example to show let the developer aware about the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split Permissions from PermissionProviders classes
2 participants