diff --git a/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift b/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift index f485ed446..07e458365 100644 --- a/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift +++ b/apple/OmnivoreKit/Sources/Views/Article/WebAppView.swift @@ -10,7 +10,8 @@ enum WebViewConfigurationManager { static func create() -> WKWebViewConfiguration { let config = WKWebViewConfiguration() config.processPool = processPool - // config.limitsNavigationsToAppBoundDomains = true + config.allowsInlineMediaPlayback = true + config.mediaTypesRequiringUserActionForPlayback = .audio return config } } diff --git a/packages/db/migrations/0077.do.grant_update_permission_on_labels.sql b/packages/db/migrations/0077.do.grant_update_permission_on_labels.sql new file mode 100755 index 000000000..c577c4948 --- /dev/null +++ b/packages/db/migrations/0077.do.grant_update_permission_on_labels.sql @@ -0,0 +1,9 @@ +-- Type: DO +-- Name: grant_update_permission_on_labels +-- Description: Add the update permission on labels + +BEGIN; + +GRANT UPDATE ON omnivore.link_labels TO omnivore_user; + +COMMIT; diff --git a/packages/db/migrations/0077.undo.grant_update_permission_on_labels.sql b/packages/db/migrations/0077.undo.grant_update_permission_on_labels.sql new file mode 100755 index 000000000..3ae4936de --- /dev/null +++ b/packages/db/migrations/0077.undo.grant_update_permission_on_labels.sql @@ -0,0 +1,9 @@ +-- Type: UNDO +-- Name: grant_update_permission_on_labels +-- Description: Add the update permission on labels + +BEGIN; + +REVOKE UPDATE ON omnivore.link_labels FROM omnivore_user; + +COMMIT; diff --git a/packages/db/migrations/0078.do.grant_update_rls_on_labels.sql b/packages/db/migrations/0078.do.grant_update_rls_on_labels.sql new file mode 100755 index 000000000..d88063234 --- /dev/null +++ b/packages/db/migrations/0078.do.grant_update_rls_on_labels.sql @@ -0,0 +1,13 @@ +-- Type: DO +-- Name: grant_update_rls_on_labels +-- Description: Add RLS update permission to the labels table + +BEGIN; + +CREATE POLICY update_labels on omnivore.labels + FOR UPDATE TO omnivore_user + USING (user_id = omnivore.get_current_user_id()); + +GRANT UPDATE ON omnivore.labels TO omnivore_user; + +COMMIT; diff --git a/packages/db/migrations/0078.undo.grant_update_rls_on_labels.sql b/packages/db/migrations/0078.undo.grant_update_rls_on_labels.sql new file mode 100755 index 000000000..dd7719285 --- /dev/null +++ b/packages/db/migrations/0078.undo.grant_update_rls_on_labels.sql @@ -0,0 +1,9 @@ +-- Type: UNDO +-- Name: grant_update_rls_on_labels +-- Description: Add RLS update permission to the labels table + +BEGIN; + +DROP POLICY update_labels on omnivore.labels ; + +COMMIT; diff --git a/packages/db/migrations/0079.do.rm_update_permission_on_link_labels.sql b/packages/db/migrations/0079.do.rm_update_permission_on_link_labels.sql new file mode 100755 index 000000000..6da68c768 --- /dev/null +++ b/packages/db/migrations/0079.do.rm_update_permission_on_link_labels.sql @@ -0,0 +1,9 @@ +-- Type: DO +-- Name: rm_update_permission_on_link_labels +-- Description: Remove unneeded update permission on the link_labels table + +BEGIN; + +REVOKE UPDATE ON omnivore.link_labels FROM omnivore_user; + +COMMIT; diff --git a/packages/db/migrations/0079.undo.rm_update_permission_on_link_labels.sql b/packages/db/migrations/0079.undo.rm_update_permission_on_link_labels.sql new file mode 100755 index 000000000..2cbd17424 --- /dev/null +++ b/packages/db/migrations/0079.undo.rm_update_permission_on_link_labels.sql @@ -0,0 +1,9 @@ +-- Type: UNDO +-- Name: rm_update_permission_on_link_labels +-- Description: Remove unneeded update permission on the link_labels table + +BEGIN; + +GRANT UPDATE ON omnivore.link_labels TO omnivore_user; + +COMMIT; diff --git a/yarn.lock b/yarn.lock index 463c49eea..f53b5f2ca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4564,9 +4564,9 @@ any-observable "^0.3.0" "@segment/analytics-next@^1.33.5": - version "1.33.5" - resolved "https://registry.yarnpkg.com/@segment/analytics-next/-/analytics-next-1.33.5.tgz#798e20229ec524deeb4f6311c008543c0fa3c175" - integrity sha512-HgyBB0vqWnVCrZ3gJY3tPq11J8RWR2Vs3OuRFg5Exf1+oVtjcQwcR09okKursx0UsvVXYG7mHKQM9yiRVYxqJA== + version "1.34.0" + resolved "https://registry.yarnpkg.com/@segment/analytics-next/-/analytics-next-1.34.0.tgz#dfc0ec53a39f3131adf7181d6f6cc74a84f7e8c5" + integrity sha512-3hbpLhMqgBrdv8WWB+qZY34F0SE4qx+zbx28D5YHpI5U1u0dEd34IjNSoBigkEHVNOV2Z1Rkyr1UBbQtZVb6Xw== dependencies: "@lukeed/uuid" "^2.0.0" "@segment/analytics.js-video-plugins" "^0.2.1" @@ -14914,12 +14914,12 @@ node-domexception@1.0.0: resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== -node-fetch@2.6.1, node-fetch@^2.3.0, node-fetch@^2.6.1: +node-fetch@2.6.1: version "2.6.1" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw== -node-fetch@2.6.7, node-fetch@^2.6.7: +node-fetch@2.6.7, node-fetch@^2.3.0, node-fetch@^2.6.1, node-fetch@^2.6.7: version "2.6.7" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==