Skip to content

fix: group CSV import ignoring read-only permissions on update - #1692

Open
santifpinformatica wants to merge 1 commit into
LibreBooking:developfrom
santifpinformatica:patch-2
Open

fix: group CSV import ignoring read-only permissions on update#1692
santifpinformatica wants to merge 1 commit into
LibreBooking:developfrom
santifpinformatica:patch-2

Conversation

@santifpinformatica

Copy link
Copy Markdown

GroupImportCsvRow only defines permissionsRead, but the update branch of ManageGroupsPresenter::Import() checked the nonexistent property $row->permissionsView. That check always evaluated as empty, so read-only permissions from the CSV were silently skipped whenever an existing group was updated. Full-access permissions were unaffected, since that branch checked the correct property.

Fixed the condition to check $row->permissionsRead instead.

Fixes #1665

GroupImportCsvRow only defines permissionsRead, but the update
branch of ManageGroupsPresenter::Import() checked the nonexistent
property $row->permissionsView. That check always evaluated as
empty, so read-only permissions from the CSV were silently
skipped whenever an existing group was updated. Full-access
permissions were unaffected, since that branch checked the
correct property.

Fixed the condition to check $row->permissionsRead instead.

Fixes LibreBooking#1665
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.

[Bug] Group CSV import silently ignores "Read Only Permissions" when updating an existing group

1 participant