Skip to content

Commit

Permalink
Fix mullvad api-access disable/disable not working on Built-In acce…
Browse files Browse the repository at this point in the history
…ss methods
  • Loading branch information
MarkusPettersson98 committed Sep 26, 2023
1 parent 6d9ed86 commit e8b8a96
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mullvad-daemon/src/access_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ pub enum Error {
/// Can not remove built-in access method
#[error(display = "Cannot remove built-in access method")]
RemoveBuiltIn,
/// Can not edit built-in access method
#[error(display = "Cannot edit built-in access method")]
EditBuiltIn,
/// Can not find access method
#[error(display = "Cannot find custom access method {}", _0)]
NoSuchMethod(ApiAccessMethodId),
Expand Down Expand Up @@ -72,9 +69,6 @@ where
&mut self,
access_method_update: AccessMethodSetting,
) -> Result<(), Error> {
if access_method_update.is_builtin() {
return Err(Error::EditBuiltIn);
}
self.settings
.update(|settings| {
let access_methods = &mut settings.api_access_methods;
Expand Down

0 comments on commit e8b8a96

Please sign in to comment.