Skip to content

[fix] no 'update' perm needed for 'create' dataobject operation #962

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

Open
wants to merge 11 commits into
base: 1.9
Choose a base branch
from

Conversation

pierre-kubica
Copy link

See issue #961

Copy link

github-actions bot commented Mar 29, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@pierre-kubica
Copy link
Author

pierre-kubica commented Mar 29, 2025

Here is my explanation.
In the DataObject create resolver, the code gets and calls the DataObject update resolver (maybe to avoid duplicating logic). But it should disable the 'update' permission check in the call params.

@pierre-kubica
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

@herbertroth herbertroth changed the base branch from 1.x to 2.x April 7, 2025 13:08
@robertSt7 robertSt7 changed the base branch from 2.x to 1.9 April 8, 2025 13:25
@robertSt7 robertSt7 changed the base branch from 1.9 to 2.x April 8, 2025 13:25
@robertSt7
Copy link
Contributor

@pierre-kubica As this is a bugfix, could you please rebase the PR to 1.9? Thanks

@pierre-kubica pierre-kubica changed the base branch from 2.x to 1.9 April 11, 2025 12:16
@robertSt7
Copy link
Contributor

@pierre-kubica There are still commits, that don't belong to your PR.
Could you please execute git rebase --onto origin/1.9 origin/2.x?
Then you need to do a force-push:
git push --force
Thanks

@pierre-kubica pierre-kubica force-pushed the pierre-kubica-patch-1 branch from d31b88e to b5d3b23 Compare April 22, 2025 09:15
alexz707 and others added 11 commits April 22, 2025 11:26
* pimcore update
* remove deprecations
* Apply php-cs-fixer changes
Update pimcore/pimcore version.
* add nesbot/carbon to composer, adapt to new version

* add nesbot/carbon to composer, adapt to new version
* Update composer.json

* Update composer.json dependencies and PHP version

* fix executeQuery

* Update 01_Upgrade_Notes.md

* revert composer requirement with dev branches

* Remove outdated upgrade note for version 1.10.0
* Add concept of IsValidDataObjectTriggerEvent.

* Apply php-cs-fixer changes

* update name of event

---------

Co-authored-by: Alex Rothberg <[email protected]>
Co-authored-by: laticrete-pimcore <[email protected]>
* [Task] Remove deprecations (pimcore#935)

* Removed deprecations, added upgrade notes

* Improvements to readability

* Apply php-cs-fixer changes

* Code format

* Removed config related to merge operator

* Added field type for table query type definition. (pimcore#883)

* Update 01_Upgrade_Notes.md (pimcore#936)

* [Bug] Introduce numeric-prefix for table (pimcore#937)

* Introduce numeric-prefix for table

* Apply php-cs-fixer changes

* [Improvement]: Add timezone indication for outputted date/datetime values (pimcore#938)

* Added timezone indication

* Apply php-cs-fixer changes

* Added specific client safe exception

* Apply php-cs-fixer changes

* Added check for pimcore version in format function

* Apply php-cs-fixer changes

* Removed unnecessary checks

* Apply php-cs-fixer changes

* Removed unnecessary checks

* Apply php-cs-fixer changes

* Removed unnecessary method

* Apply php-cs-fixer changes

* Added creationDate/modificationDate for data objects, assets and asset folder

* Apply php-cs-fixer changes

* Added datetime resolve for metadata in assets

* Apply php-cs-fixer changes

* Update upgrade notes, added resolver for object folder and document folder types

* Apply php-cs-fixer changes

* Update upgrade notes

* Fix automatic tests

* Apply php-cs-fixer changes

* Fix automatic tests

* Added date resolver for translation type

* Apply php-cs-fixer changes

* Removed typo

* Update src/GraphQL/DataObjectQueryFieldConfigGenerator/Date.php

Co-authored-by: Matthias Schuhmayer <[email protected]>

* Update src/GraphQL/Exception/InvalidFieldDefinitionException.php

Co-authored-by: Matthias Schuhmayer <[email protected]>

* Apply php-cs-fixer changes

---------

Co-authored-by: Matthias Schuhmayer <[email protected]>

* Remove deprecated config setting enable_authenticator_manager

* Adding return types to symfony extension methods

* Adding return types to compiler pass methods

* Change to attributes

* Add return types

---------

Co-authored-by: mcop1 <[email protected]>
Co-authored-by: Vladimir Malik <[email protected]>
Co-authored-by: Matthias Schuhmayer <[email protected]>
Co-authored-by: mattamon <[email protected]>
@pierre-kubica pierre-kubica force-pushed the pierre-kubica-patch-1 branch from b5d3b23 to cf99181 Compare April 22, 2025 09:29
@pierre-kubica
Copy link
Author

Is it correct now ?

@robertSt7
Copy link
Contributor

@pierre-kubica Unfortunately not, the best thing would be to open a new PR with 1.9 as base branch and close this one

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

Successfully merging this pull request may close these issues.

9 participants