Module: Types::UserInterface
- Includes:
- BaseInterface
- Defined in:
- app/graphql/types/user_interface.rb
Instance Method Summary collapse
Instance Method Details
#redacted_name ⇒ Object
284 285 286 |
# File 'app/graphql/types/user_interface.rb', line 284 def redacted_name object.redacted_name(context[:current_user]) end |
#resolve_user_namespace ⇒ Object
288 289 290 291 292 |
# File 'app/graphql/types/user_interface.rb', line 288 def resolve_user_namespace return object.namespace if object.namespace&.organization_id == context[:current_organization].id nil end |