Repository navigation
Conversation
The permission service signals missing edit access by throwing, so read-only board members never received a Text session for card descriptions. Treat that exception as read-only access while content loading continues to enforce read permission. Assisted-by: Devin:adaptive Signed-off-by: Man Alin <whoalin414@gmail.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
whoalin1
force-pushed
the
fix/readonly-card-text-session
branch
from
November 29, 2026 16:05
93779e2 to
3de0b23
Compare
Member
|
Duplicate of #8739 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #8742
PermissionService::checkPermission()throwsNoPermissionExceptionwhen edit access is missing rather than returningfalse. BecauseTextContextProvidertreated the permission check as a boolean, read-only board members never reached the intended read-only session path and the card description stayed empty.The provider now treats missing edit permission as a read-only session. Content loading still goes through
CardService::find(), so users without read access remain unable to read the card.Validation:
php -l lib/Provider/TextContextProvider.php tests/unit/Provider/TextContextProviderTest.php: passedtests/unit/Provider/TextContextProviderTest.php: 7 tests passed, 10 assertionsAssisted by Devin:unknown