Skip to content

Refactor: Centralize logic for checking if a share is password protected#61946

Open
theCalcaholic wants to merge 1 commit into
nextcloud:masterfrom
theCalcaholic:feature/refactor-share-is-pw-protected
Open

Refactor: Centralize logic for checking if a share is password protected#61946
theCalcaholic wants to merge 1 commit into
nextcloud:masterfrom
theCalcaholic:feature/refactor-share-is-pw-protected

Conversation

@theCalcaholic

@theCalcaholic theCalcaholic commented Jul 9, 2026

Copy link
Copy Markdown

Summary

Previously, there were numerous checks that check whether a share has an empty or null password scattered around the code base. This PR moves the logic for this into a single, central method on IShare.

This PR prepares and is a prerequisite for #61722.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@theCalcaholic theCalcaholic requested a review from a team as a code owner July 9, 2026 14:55
@theCalcaholic theCalcaholic requested review from come-nc, leftybournes, provokateurin and salmart-dev and removed request for a team July 9, 2026 14:55
@theCalcaholic

Copy link
Copy Markdown
Author

@miaulalala This is the refactoring portion we were talking about.
From my perspective it is ready for review. :)

@theCalcaholic theCalcaholic force-pushed the feature/refactor-share-is-pw-protected branch from cc7b47c to f019b17 Compare July 9, 2026 15:15
…rd protected in IShare->isPasswordProtected()
@theCalcaholic theCalcaholic force-pushed the feature/refactor-share-is-pw-protected branch from f019b17 to 85cac33 Compare July 9, 2026 15:17
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.

1 participant