effective_memberships 0.15.1 → 0.15.3

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: 496b494a70e47e75ca34b0b9103098b982900eb5405ca4f81d6521afc9a03394
4
- data.tar.gz: b1b15ed6a27e4b436c7f3269d1a5f902b91d14c94a804d075c69233a1016171e
3
+ metadata.gz: e2cafda7d6dc70a59ef3d1589f5cab97c69d5b42af028d79828286b2303761b4
4
+ data.tar.gz: 8e9cab71adbb73b888f9910466e08c987c81c8e4861744cee471968cd24f9832
5
5
  SHA512:
6
- metadata.gz: c620514d835854625467cfe91c104d8ea5a6666915cec8f85b7b031d8a1b9b27ae54525be78f8dcd82b1369e7b4ea0a164836e7077f5b4680bea2898a87eea91
7
- data.tar.gz: f51ee6087bc44f78ddf275587dc194c3d36a0535e9cbe038f8389c23aed60529810b72b1467883accc5b99e9b9df2589dd61401b012e9667cfa70963950fa4a1
6
+ metadata.gz: 9018813c526f99303b07116a8a431658cf47866cc1c1dfa31f85074f9d68450a714d8c0dc420240d725ef73ac0b3c428c6a3c2fd05639f4d2aacbe35371d929f
7
+ data.tar.gz: b3143712b61f5f7691c46b017db9901eb6fcf5ffcc6288f43767d7525298702f864f4e4220b4486d522a0fc05813f8dd139abaa1aca70a2fa365a097ec3b265b
@@ -263,6 +263,12 @@ module EffectiveMembershipsCategory
263
263
  tax_exempt
264
264
  end
265
265
 
266
+ # This enables the permission to use the effective products stamp wizard
267
+ # To buy a stamp outside of the applicant process
268
+ def can_stamp_wizard?
269
+ applicant_wizard_steps.include?(:stamp)
270
+ end
271
+
266
272
  def stamp_fee
267
273
  0
268
274
  end
@@ -91,4 +91,8 @@ module EffectiveMembershipsUser
91
91
  false
92
92
  end
93
93
 
94
+ def can_stamp_wizard?
95
+ is?(:member) && membership.category.can_stamp_wizard?
96
+ end
97
+
94
98
  end
@@ -82,7 +82,7 @@ module Effective
82
82
 
83
83
  def to_s
84
84
  if (endorser.present? || name.present?)
85
- "#{model_name.human} from #{endorer || name}"
85
+ "#{model_name.human} from #{endorser || name}"
86
86
  else
87
87
  model_name.human
88
88
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.15.1'
2
+ VERSION = '0.15.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_memberships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect