censor_bear 0.1.26 → 0.1.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b18fad20d3a442f9d7f4883c000360394cf25c4fe7b989323ce90ff4583ddf25
4
- data.tar.gz: f9f5c7440506a715cb367b628dc0c2737e5795529e666caa3c831c67f72f5c03
3
+ metadata.gz: e50aaeb8a20994e3a523ded0489259527714d431aa457f94236616b912fca5fd
4
+ data.tar.gz: 61b8fd343c7b2ca4c65c1d532f7ac5a62283a26a3cc861c9592f5d12dca57c33
5
5
  SHA512:
6
- metadata.gz: 8bb414662e9d49b0240f2c494e1b633e2b9279f39487cc7de1675d68bf42d0a5eb66a5c20df36f53c0b5832e992b46fa095d94bbc6b0130756ee0ed7cfd2a411
7
- data.tar.gz: ecd71546eab4250a0ec9664f0c76adec6083fddebdf86cbc52df84876087f41eeb3b4253ca1fce6ec0427831237d0eb2a53c9166ee4fa4b4340df37e39fe08c5
6
+ metadata.gz: 912dd98649a6c10feed67e7bf238536df82c84e8afc138b2f660e553fe4875df037e81a283d67d2dd5e929f8e08bafcee0014a898a9e5540ee604d0ed896ebc7
7
+ data.tar.gz: e2f804ffce1b5448a9ea8e4ecc021ddfbb3164fc1d50671ef03fb8693026079748b79787efd62b892a90ed57d0d23f4314edce26e7b834620346c9ed5324837d
@@ -12,7 +12,7 @@ module CensorBear
12
12
  end
13
13
 
14
14
  def authenticate_censor_bear_user!
15
- render(json: { msg: "no permission" }, status: 403) unless current_user.admin?
15
+ render(json: { msg: "no permission" }, status: 403) unless current_user.censor_bear_admin?
16
16
  end
17
17
 
18
18
  def current_user
@@ -1,3 +1,3 @@
1
1
  module CensorBear
2
- VERSION = '0.1.26'.freeze
2
+ VERSION = '0.1.27'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: censor_bear
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.26
4
+ version: 0.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - 42up