diff --git a/CHANGES.md b/CHANGES.md index 15a04aa2f2..14b3f683d7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -31,6 +31,7 @@ - Fix unhandled exception on open-new-window helper [Github #7787](https://github.com/penpot/penpot/issues/7787) - Fix exception on uploading large fonts [Github #8135](https://github.com/penpot/penpot/pull/8135) - Fix boolean operators in menu for boards [Taiga #13174](https://tree.taiga.io/project/penpot/issue/13174) +- Fix viewer can update library [Taiga #13186](https://tree.taiga.io/project/penpot/issue/13186) ## 2.13.0 (Unreleased) diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index 9156b7bfe9..52059269df 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -1205,6 +1205,7 @@ file (dsh/lookup-file state file-id) file-data (get file :data) ignore-until (get file :ignore-sync-until) + permissions (:permissions state) libraries-need-sync (->> (vals (get state :files)) @@ -1224,7 +1225,8 @@ do-dismiss #(st/emit! ignore-sync (ntf/hide))] - (when (seq libraries-need-sync) + (when (and (:can-edit permissions) + (seq libraries-need-sync)) (rx/of (ntf/dialog :content (tr "workspace.updates.there-are-updates") :controls :inline-actions