Merge commit '7bdeceded43f70472dbc60a21bc3a507aff87958' into OMN-190

This commit is contained in:
gitstart-omnivore 2022-03-31 13:02:58 +00:00
commit d07f8c6c76
8 changed files with 65 additions and 6 deletions

View file

@ -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
}
}

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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==