Class: VAProfilePolicy
- Inherits:
-
Struct
- Object
- Struct
- VAProfilePolicy
- Defined in:
- app/policies/va_profile_policy.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
Returns the value of attribute user.
-
#va_profile ⇒ Object
Returns the value of attribute va_profile.
Instance Method Summary collapse
Instance Attribute Details
#user ⇒ Object
Returns the value of attribute user
3 4 5 |
# File 'app/policies/va_profile_policy.rb', line 3 def user @user end |
#va_profile ⇒ Object
Returns the value of attribute va_profile
3 4 5 |
# File 'app/policies/va_profile_policy.rb', line 3 def va_profile @va_profile end |
Instance Method Details
#access? ⇒ Boolean
4 5 6 |
# File 'app/policies/va_profile_policy.rb', line 4 def access? user.edipi.present? end |
#access_to_v2? ⇒ Boolean
8 9 10 11 12 13 14 |
# File 'app/policies/va_profile_policy.rb', line 8 def access_to_v2? if Flipper.enabled?(:va_v3_contact_information_service, user) user.icn.present? else user.vet360_id.present? end end |