symphonia 3.2.2 → 3.2.3
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/lib/symphonia/action_cable/connection.rb +1 -1
- data/lib/symphonia/admin_constraint.rb +2 -1
- data/lib/symphonia/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99e22a07ad3a53e586bb8b1017e2e6134ad905b4d6ca9b75980bf9ce3faae6a4
|
|
4
|
+
data.tar.gz: dbdc31724b0ffe995761cd2204f06eaa51dd055f0aa8fff836315305a7f133a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f21226bba431c348641b8ed8aa2639c05fef3a03ce4d28cee1805a70fa0526204c6765eec9f1642860c14c5c7877784397f4832b4d04d63dfb38087c30d620e
|
|
7
|
+
data.tar.gz: aa759cc8550bf6db435111476957f581eeea05e13f7ee8b050f540b725ffcf73eebb900a80e0e1c3c5c8e2ced28476138f59b3383516c80332ff12de12f970d7
|
|
@@ -15,7 +15,7 @@ module Symphonia
|
|
|
15
15
|
protected
|
|
16
16
|
|
|
17
17
|
def find_verified_user_or_guest
|
|
18
|
-
if (credentials = request.
|
|
18
|
+
if (credentials = request.session["symphonia/user_credentials"]).present?
|
|
19
19
|
::Symphonia::User.find_by_persistence_token(credentials.split(':')[0])
|
|
20
20
|
else
|
|
21
21
|
nil
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Symphonia
|
|
2
2
|
class AdminConstraint
|
|
3
3
|
def matches?(request)
|
|
4
|
-
return false
|
|
4
|
+
return false if (credentials = request.session["symphonia/user_credentials"]).blank?
|
|
5
|
+
|
|
5
6
|
user = User.find_by_persistence_token(credentials.split(':')[0])
|
|
6
7
|
user&.admin?
|
|
7
8
|
end
|
data/lib/symphonia/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: symphonia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lukas Pokorny
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|