Skip to content

Allow copy/move to node owned by current user - #4019

Open
georgweiss wants to merge 1 commit into
masterfrom
CSSTUDIO-3825
Open

georgweiss wants to merge 1 commit into
masterfrom
CSSTUDIO-3825

Conversation

@georgweiss

Copy link
Copy Markdown
Collaborator

Fixes a bug (or incorrect assumption...): in save&restore objects could not be copied or moved to folders created by the user.

  • Testing:

    • The feature has automated tests
    • Tests were run
    • If not, explain how you tested your changes
  • Documentation:

    • The feature is documented
    • The documentation is up to date
    • Release notes:
      • Added an entry if the change is breaking or significant
      • Added an entry when adding a new feature

@georgweiss
georgweiss requested a review from shroffk November 12, 2026 13:02
@sonarqubecloud

Copy link
Copy Markdown

Node targetNode = nodeDAO.getNode(targetNodeId);

return targetNode.getUserName()
.equals(((UserDetails) methodSecurityExpressionOperations.getAuthentication().getPrincipal()).getUsername());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is username always the same as the owner?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

This branch has not been deployed

No deployments
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.

2 participants