coalescing_panda 5.1.7 → 5.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/coalescing_panda/group_category.rb +0 -1
- data/db/migrate/20150714205405_create_coalescing_panda_group_categories.rb +0 -1
- data/lib/coalescing_panda/controller_helpers.rb +5 -1
- data/lib/coalescing_panda/version.rb +1 -1
- data/lib/coalescing_panda.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2d9182e5ea2d4dda01488cdfaf214ea4d5de08e
|
4
|
+
data.tar.gz: 4ee107d7561962246914a01db19ad653c0bce516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f747263f8bea8914b58c30c2c507ac141ee4737a5554aa183dfb6793f50411a5bcc5bc03311c816719f5563e5703aed9fbad540fdb047511b464cc01ecc5bf6
|
7
|
+
data.tar.gz: 38d3ac0ef58e1c52c12cf2957814d8cb9381c4d176aae6da403dfe0c325f7156e06fff95b08abd9e5a8f9b6cac0a5896994602c1ddafa1ff35fa5581ce8fcbcd
|
@@ -3,7 +3,6 @@ module CoalescingPanda
|
|
3
3
|
belongs_to :context, :polymorphic => true
|
4
4
|
include SingleTablePolymorphic
|
5
5
|
|
6
|
-
belongs_to :leader, foreign_key: :leader_id, class_name: 'CoalescingPanda::User'
|
7
6
|
has_many :groups, foreign_key: :coalescing_panda_group_category_id, class_name: 'CoalescingPanda::Group'
|
8
7
|
has_many :assignments, foreign_key: :coalescing_panda_group_category_id, class_name: 'CoalescingPanda::Assignment'
|
9
8
|
validates :canvas_group_category_id, presence: true
|
@@ -2,7 +2,6 @@ class CreateCoalescingPandaGroupCategories < CoalescingPanda::MiscHelper::Migrat
|
|
2
2
|
def change
|
3
3
|
create_table :coalescing_panda_group_categories do |t|
|
4
4
|
t.belongs_to :context, polymorphic: true
|
5
|
-
t.string :context_type
|
6
5
|
t.integer :canvas_group_category_id
|
7
6
|
t.string :name
|
8
7
|
|
@@ -50,7 +50,7 @@ module CoalescingPanda
|
|
50
50
|
@canvas_url = client.auth_redirect_url(client_id, resolve_coalescing_panda_url(:oauth2_redirect_url), { state: state })
|
51
51
|
|
52
52
|
#delete the added params so the original oauth sig still works
|
53
|
-
@lti_params = params.
|
53
|
+
@lti_params = params.to_unsafe_h
|
54
54
|
@lti_params.delete('action')
|
55
55
|
@lti_params.delete('controller')
|
56
56
|
render 'coalescing_panda/oauth2/oauth2', layout: 'coalescing_panda/application'
|
@@ -106,6 +106,10 @@ module CoalescingPanda
|
|
106
106
|
false
|
107
107
|
end
|
108
108
|
|
109
|
+
def validate_launch!
|
110
|
+
lti_authorize!
|
111
|
+
end
|
112
|
+
|
109
113
|
def lti_authorize!(*roles)
|
110
114
|
authorized = false
|
111
115
|
if (@lti_account = params['oauth_consumer_key'] && LtiAccount.find_by_key(params['oauth_consumer_key']))
|
data/lib/coalescing_panda.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coalescing_panda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Mills
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-09-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|