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