panda_pal 5.16.7 → 5.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/panda_pal/session.rb +1 -1
- data/config/initializers/apartment.rb +1 -1
- data/lib/panda_pal/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3634f0275d3c352ed29ed11bdb0969723ad1164a56108146d6fd1540f9c10c8d
|
|
4
|
+
data.tar.gz: 4309662fa2449e8ea332bf7e95b04b5c91af15bf94c0e8a677aa016249a52ff0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9ada1780b010255a78193be4185423eec06a429a458b7feca0165208ecd1f383e3e0d6e1df1a0c9da469a1c237e1a82b39c792f3c8569544e9c8c1ec6a05a7e
|
|
7
|
+
data.tar.gz: 6c104dfe39e7197e738adcb4146baf0d0fa1a6ee723fa28646a390d7748f92c11c167b8763d04f8dcad41215399d7b1ccfcb3b8253a360a3ac24c4e06b756b34
|
|
@@ -245,7 +245,7 @@ module PandaPal
|
|
|
245
245
|
|
|
246
246
|
if defined?(::Admin) && ::Admin < ::ActiveRecord::Base
|
|
247
247
|
account = current_organization.canvas_account_id if account == 'self'
|
|
248
|
-
adm_query = ::Admin.where(canvas_account_id: account, workflow_state: "active")
|
|
248
|
+
adm_query = ::Admin.where(canvas_account_id: account, workflow_state: "active", canvas_user_id: canvas_user_id)
|
|
249
249
|
adm_query.pluck(:role_name)
|
|
250
250
|
else
|
|
251
251
|
Rails.cache.fetch([self.class.name, "AccountAdminLinks", account, canvas_user_id], expires_in: 1.hour) do
|
|
@@ -337,7 +337,7 @@ ActiveSupport.on_load(:action_cable) do
|
|
|
337
337
|
end
|
|
338
338
|
|
|
339
339
|
ActiveSupport.on_load(:active_record) do
|
|
340
|
-
ActiveRecord::
|
|
340
|
+
ActiveRecord::ConnectionAdapters::AbstractAdapter.set_callback :checkout, :after do |conn|
|
|
341
341
|
next unless (ct = Thread.current[:cable_tenant]).present?
|
|
342
342
|
next unless Apartment::Tenant.adapter.is_a?(Apartment::Adapters::PostgresqlSchemaAdapter)
|
|
343
343
|
next unless conn.pool == Apartment.connection_class.connection_pool
|
data/lib/panda_pal/version.rb
CHANGED