Commit ccf10b2
authored
fix: Override
Allow updates of Snaps even when the `disableSnapInstallation` feature
flag is enabled as long as the update is an automatic one.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Permits automatic Snap updates to bypass the `disableSnapInstallation`
check while preserving manual update restrictions for preinstalled
Snaps.
>
> - **Snaps Controller** (`SnapController.ts`):
> - Modify `#updateSnap(...)` to only call `#assertCanInstallSnaps()`
when `automaticUpdate` is false, allowing automatic updates even if
`disableSnapInstallation` is enabled.
> - Retain restriction preventing manual updates of preinstalled Snaps
(`preinstalled && !automaticUpdate`).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4c35eb4. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->disableSnapInstallation feature flag when using automatic updates (#3735)1 parent e081eb2 commit ccf10b2
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2913 | 2913 | | |
2914 | 2914 | | |
2915 | 2915 | | |
2916 | | - | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
2917 | 2919 | | |
2918 | 2920 | | |
2919 | 2921 | | |
| |||
0 commit comments