Commit af84456b authored by Jonathan Schafer's avatar Jonathan Schafer Committed by Matthias Käppler

Add descriptions to Snippets::VisibilityScopesEnum

parent 6467ddd2
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
Graphql/Descriptions: Graphql/Descriptions:
Exclude: Exclude:
- 'app/graphql/types/snippets/blob_action_enum.rb' - 'app/graphql/types/snippets/blob_action_enum.rb'
- 'app/graphql/types/snippets/visibility_scopes_enum.rb'
- 'ee/app/graphql/ee/types/list_limit_metric_enum.rb' - 'ee/app/graphql/ee/types/list_limit_metric_enum.rb'
- 'ee/app/graphql/types/epic_state_enum.rb' - 'ee/app/graphql/types/epic_state_enum.rb'
- 'ee/app/graphql/types/health_status_enum.rb' - 'ee/app/graphql/types/health_status_enum.rb'
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
module Types module Types
module Snippets module Snippets
class VisibilityScopesEnum < BaseEnum class VisibilityScopesEnum < BaseEnum
value 'private', value: 'are_private' value 'private', description: 'The snippet is visible only to the snippet creator.', value: 'are_private'
value 'internal', value: 'are_internal' value 'internal', description: 'The snippet is visible for any logged in user except external users.', value: 'are_internal'
value 'public', value: 'are_public' value 'public', description: 'The snippet can be accessed without any authentication.', value: 'are_public'
end end
end end
end end
...@@ -14668,9 +14668,9 @@ Possible states of a user. ...@@ -14668,9 +14668,9 @@ Possible states of a user.
| Value | Description | | Value | Description |
| ----- | ----------- | | ----- | ----------- |
| <a id="visibilityscopesenuminternal"></a>`internal` | | | <a id="visibilityscopesenuminternal"></a>`internal` | The snippet is visible for any logged in user except external users. |
| <a id="visibilityscopesenumprivate"></a>`private` | | | <a id="visibilityscopesenumprivate"></a>`private` | The snippet is visible only to the snippet creator. |
| <a id="visibilityscopesenumpublic"></a>`public` | | | <a id="visibilityscopesenumpublic"></a>`public` | The snippet can be accessed without any authentication. |
### `VulnerabilityDismissalReason` ### `VulnerabilityDismissalReason`
......
...@@ -16,7 +16,7 @@ Constants for snippet visibility levels are: ...@@ -16,7 +16,7 @@ Constants for snippet visibility levels are:
| visibility | Description | | visibility | Description |
| ---------- | ----------- | | ---------- | ----------- |
| `private` | The snippet is visible only the snippet creator | | `private` | The snippet is visible only to the snippet creator |
| `internal` | The snippet is visible for any logged in user except [external users](../user/permissions.md#external-users) | | `internal` | The snippet is visible for any logged in user except [external users](../user/permissions.md#external-users) |
| `public` | The snippet can be accessed without any authentication | | `public` | The snippet can be accessed without any authentication |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment