Skip to content

Commit

Permalink
calendar: Fix user-privileges for read-only calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
lennart-k committed Jan 12, 2025
1 parent f9f076c commit 1d07663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/caldav/src/calendar/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ impl Resource for CalendarResource {
}

fn get_user_privileges(&self, user: &User) -> Result<UserPrivilegeSet, Self::Error> {
if self.cal.subscription_url.is_some() {
if self.cal.subscription_url.is_some() || self.read_only {
return Ok(UserPrivilegeSet::read_only());
}

Expand Down

0 comments on commit 1d07663

Please sign in to comment.