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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2dc69090531d872e50b4bf8414fdca02abaeada29fb82a0da811f3c3cfce95dc
4
- data.tar.gz: 86dda2b637be102247d9d400437e2c8a641287ef6003a47a72cfaac2ad3ee82e
3
+ metadata.gz: 3634f0275d3c352ed29ed11bdb0969723ad1164a56108146d6fd1540f9c10c8d
4
+ data.tar.gz: 4309662fa2449e8ea332bf7e95b04b5c91af15bf94c0e8a677aa016249a52ff0
5
5
  SHA512:
6
- metadata.gz: 93dab2296f05be33a67c346b1fd61c7e62de04e714f9dfae1d88cb40b1123794453e3093e0c81fd147f5fb29c189d41b7e0454c76abbbf70dc1d845a1454e473
7
- data.tar.gz: 8df5d04c2bbe0b62ff302dd1115b70650cd16bb940013b62cc404014aff0046fe0e9afc016d679d4cb63d852dc63169df1bacdaacde7d28adace939ad4028a13
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::Base.connection.class.set_callback :checkout, :after do |conn|
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
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = "5.16.7"
2
+ VERSION = "5.16.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panda_pal
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.16.7
4
+ version: 5.16.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev