-
Notifications
You must be signed in to change notification settings - Fork 16
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
Check group content entity operation access #217
Merged
Merged
Changes from 91 commits
Commits
Show all changes
98 commits
Select commit
Hold shift + click to select a range
8de919a
Check access to do CRUD operations on group content.
pfrenssen 73d803b
Do not use CRUD in the method names, there are more operations than o…
pfrenssen 551fa5d
Reuse the generation of the entity operation permissions.
pfrenssen 764cf74
Inject the permission manager.
pfrenssen 78fbae2
Use the injected account proxy to get information about the current u…
pfrenssen 78ee472
Inject the permission manager now that OgAccess is a service.
pfrenssen a4b2de2
Update OgAccessEntityTest now that the entity operations are also che…
pfrenssen ab4159d
Merge remote-tracking branch 'origin/8.x-1.x' into check-group-conten…
pfrenssen 4167dfe
Merge remote-tracking branch 'origin/8.x-1.x' into check-group-conten…
pfrenssen d6491e1
Merge remote-tracking branch 'origin/8.x-1.x' into check-group-conten…
pfrenssen 15611c7
Update getPermissionList() now that the permissions are keyed by enti…
pfrenssen 3096020
Don't speak about CRUD, entity operations go beyond the basic CRUD op…
pfrenssen 970b78c
Update documentation.
pfrenssen 9a7ef40
Put the additional metadata in the permission array.
pfrenssen aa14a43
If we handle all of this through the PermissionEvent we don't need to…
pfrenssen c79fd2e
Check the presence of the group content entity type and bundle for op…
pfrenssen b886f85
WIP documentation.
pfrenssen 291aa23
Deliberately introduce a failure as a reminder.
pfrenssen 4736124
Inject the permission manager. We'll need it.
pfrenssen e35e3be
Update documentation.
pfrenssen a2c2c4d
Merge branch 'return-partial-og-roles' into check-group-content-crud-…
pfrenssen e21cec4
Merge remote-tracking branch 'origin/8.x-1.x' into check-group-conten…
pfrenssen 38bc56d
Merge branch 'split-permissions' into check-group-content-crud-access
pfrenssen 46f9cb5
WIP
pfrenssen c97e381
Fix typo.
pfrenssen 7bbca54
Fix matching of OgRole ID, it failed because 'non-member' contains a …
pfrenssen 2362ffe
Musing about future improvements.
pfrenssen fba96ed
Inject the GroupManager.
pfrenssen 6c51593
We have PermissionManagerInterface now.
pfrenssen 7c238c4
Temporarily remove early abort.
pfrenssen ff655f9
Pass on the group content bundle IDs.
pfrenssen 7c6a46c
Check if the user has the entity operation permission for the group m…
pfrenssen e820655
Merge branch 'split-permissions' into check-group-content-crud-access
pfrenssen 47b2f0c
Update documentation.
pfrenssen 6d666de
Add support for retrieving permissions from non-members.
pfrenssen 4f1b190
Small restructuring to make the code more readable.
pfrenssen 297e6c1
Merge remote-tracking branch 'origin/cleanup-og-access-test' into che…
pfrenssen 517224b
More test greenage.
pfrenssen f1cdff3
Access the storage handler directly.
pfrenssen bf8c41c
Move the code to always return Neutral.
pfrenssen d600774
Clarify reminder.
pfrenssen 60a2aa9
Small optimization pointed out by the unit test coverage.
pfrenssen 4b0650b
Actually use the GroupManager, it has been injected for a reason.
pfrenssen 2d21042
Correct documentation, this was never used as group content.
pfrenssen d55ba51
Remove unused use statement.
pfrenssen 635227d
Start working on the test.
pfrenssen b7fce65
First round of failure fixing.
pfrenssen 5125496
Change ownership from a string to a boolean.
pfrenssen fd88473
Update documentation.
pfrenssen 2323d35
Rename [g|s]etRoles() to [g|s]etApplicableRoles().
pfrenssen 9f8815c
Fix fatal errors discovered while testing.
pfrenssen 25a6c3b
Update documentation.
pfrenssen 9a9ee7d
Working on test coverage.
pfrenssen b32285e
Fix bug discovered by test.
pfrenssen d14bb31
Merge remote-tracking branch 'origin/8.x-1.x' into check-group-conten…
pfrenssen 101f8ce
Only return a membership entity in which the user is a non-member if …
pfrenssen 7a21262
Request both the memberships entities of members and non-members to d…
pfrenssen f8e5779
Add a functional test that checks access to an entity operation throu…
pfrenssen bbc5f94
Merge remote-tracking branch 'origin/8.x-1.x' into check-group-conten…
pfrenssen db804e6
Merge remote-tracking branch 'origin/8.x-1.x' into check-group-conten…
pfrenssen e11a717
Declare visibility on method.
pfrenssen 0d89fba
Argument order of Og::getMembership() has changed.
pfrenssen 3394ad5
Use the new DX friendly way to set the user and group when creating a…
pfrenssen b03c5b7
Fix PHP CodeSniffer warnings.
pfrenssen fe9170d
Actually is null.
pfrenssen 463ef9f
Use the fullly qualified namespace for return values.
pfrenssen 7a30183
Use shorthand array syntax.
pfrenssen 5bf96e7
Merge remote-tracking branch 'origin/8.x-1.x' into check-group-conten…
pfrenssen 7078165
Rename method. It only deals with a single operation at a time.
pfrenssen 878164f
Improve documentation.
pfrenssen a42b96a
Use the ternary operator instead of an if statement.
pfrenssen c63d48b
Improve documentation.
pfrenssen 74dac29
Rename $user to $membership_type since this better conveys what the v…
pfrenssen 2128386
Rename 'newsletter_subscription' to 'newsletter'. Shorter is gooder.
pfrenssen 1fbba71
Provide an issue number with a @todo so it becomes actionable.
pfrenssen 8dd3c9b
Adopt the awesome new DX improvements for creating memberships.
pfrenssen 7796f5a
Remove unused use statement.
pfrenssen 6f64986
Change the membership state constants to strings.
pfrenssen 2f2caa7
Small documentation update.
pfrenssen a841f2c
Test that blocked users cannot create, update or delete any group con…
pfrenssen b2e37e8
Fix PHP CodeSniffer warning.
pfrenssen 37d2216
Update the membership state field definition, it has changed from int…
pfrenssen 2a67361
Move the generation of the 'non-member membership' to the calling side.
pfrenssen f6c5af0
Blocked users should not have any permissions.
pfrenssen 774e5c9
We don't care if a group is new when doing access checks.
pfrenssen 370d543
Convert the functional access test into a kernel test.
pfrenssen 0694f45
Fix PHP CodeSniffer warning.
pfrenssen 9cf7f4d
Remove unused trait.
pfrenssen 2063574
Add a test that proves that it is possible to grant permissions to no…
pfrenssen 82f016f
Provide a convenient method OgRole::loadByGroupAndName().
pfrenssen 768cbbe
Fix PHP CodeSniffer warnings.
pfrenssen b7df48b
Leverage OgAccess::userAccess() instead of duplicating half its logic…
pfrenssen a2ffe60
Add documentation.
pfrenssen cad927c
Remove unused variable.
pfrenssen ea97a93
Blocked users should not be granted any permissions.
pfrenssen d1e6ebc
Revert "Provide a convenient method OgRole::loadByGroupAndName()."
pfrenssen a9622bb
Merge remote-tracking branch 'origin/8.x-1.x' into check-group-conten…
pfrenssen bbceea5
Fix PHP_CodeSniffer warnings.
pfrenssen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix covers having entity and bundle IDs containing dashes.