q_auth_ruby_client 0.0.6 → 0.0.7

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
  SHA1:
3
- metadata.gz: ed5bddc8fb5b49fbe35d9176bd947bee66505816
4
- data.tar.gz: 04be0d6f4431e2b4faf49a57b8090d7247d8fdb2
3
+ metadata.gz: f2cb0424b805f625257458e3dbba623220f87d2e
4
+ data.tar.gz: b2cc258647500c1cef1d3dfa81bf95f422b911df
5
5
  SHA512:
6
- metadata.gz: 76c158ea8d5b970c5c028237bde5c4f11c2db3806e54429412206a7de9f7ce5afbf4be70b67c981e941c5abdbd764fb33cd2d8331cfd40e81d78cb6c87b3e669
7
- data.tar.gz: 0f9cb8fb7d4373e52282abf28d2283d301bc0a6e6d13eb7f0ef932af631dd37efc794b7c29e1675e927d89aca411f6bc38bc32cb7e149d87454220921c9d718a
6
+ metadata.gz: a5cc3a7f3a5cb3955b15f5460777de8736177ef35c6cf92ba69754d0794c86db792b7c82f8e40931f29494cbc1cc92b4e52f32b179d41183f2f1498bd092c2e2
7
+ data.tar.gz: fed69c6da5def5522a8d502dcafc67366c9355fadc17f5040f8add77e5d73ea295f017fde0cbbfb15436a976f565183dc2c7b118c8be0ca5aa0f573698ae7481
@@ -61,7 +61,7 @@ module QAuthRubyClient
61
61
 
62
62
  # This method is usually used as a before filter from admin controllers to ensure that the logged in user is an admin
63
63
  def require_admin
64
- unless @current_user.is_admin?
64
+ unless (@current_user && @current_user.is_admin?)
65
65
  set_notification_messages(I18n.t("authentication.permission_denied_heading"), I18n.t("authentication.permission_denied_message"), :error)
66
66
  redirect_to_sign_in_page
67
67
  return
@@ -1,3 +1,3 @@
1
1
  module QAuthRubyClient
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: q_auth_ruby_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krishnaprasad Varma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-13 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails