Add accessLevel & isLastOrganizationOwner fields to organizationUser
We are adding these fields to the `organizationUser` GraphQL query so check if the current user is the last owner of the organization to see if the user can leave the organization or not. Changelog: added
显示
- app/graphql/types/organizations/organization_user_access_level_enum.rb 13 个添加, 0 个删除...ypes/organizations/organization_user_access_level_enum.rb
- app/graphql/types/organizations/organization_user_access_level_type.rb 22 个添加, 0 个删除...ypes/organizations/organization_user_access_level_type.rb
- app/graphql/types/organizations/organization_user_type.rb 14 个添加, 0 个删除app/graphql/types/organizations/organization_user_type.rb
- app/graphql/types/permission_types/organization_user.rb 11 个添加, 0 个删除app/graphql/types/permission_types/organization_user.rb
- app/models/organizations/organization_user.rb 11 个添加, 0 个删除app/models/organizations/organization_user.rb
- app/policies/organizations/organization_user_policy.rb 4 个添加, 0 个删除app/policies/organizations/organization_user_policy.rb
- doc/api/graphql/reference/index.md 31 个添加, 0 个删除doc/api/graphql/reference/index.md
- spec/factories/organizations/organization_users.rb 2 个添加, 0 个删除spec/factories/organizations/organization_users.rb
- spec/graphql/types/organizations/organization_user_access_level_enum_spec.rb 11 个添加, 0 个删除...organizations/organization_user_access_level_enum_spec.rb
- spec/graphql/types/organizations/organization_user_access_level_type_spec.rb 14 个添加, 0 个删除...organizations/organization_user_access_level_type_spec.rb
- spec/graphql/types/organizations/organization_user_type_spec.rb 1 个添加, 1 个删除...raphql/types/organizations/organization_user_type_spec.rb
- spec/graphql/types/permission_types/organization_user_spec.rb 15 个添加, 0 个删除.../graphql/types/permission_types/organization_user_spec.rb
- spec/models/organizations/organization_user_spec.rb 50 个添加, 0 个删除spec/models/organizations/organization_user_spec.rb
- spec/policies/organizations/organization_user_policy_spec.rb 32 个添加, 0 个删除spec/policies/organizations/organization_user_policy_spec.rb
- spec/requests/api/graphql/organizations/organization_query_spec.rb 11 个添加, 4 个删除...ests/api/graphql/organizations/organization_query_spec.rb
加载中
想要评论请 注册 或 登录