Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
6387405a06
commit
52ac2cacfd
|
@ -229,7 +229,7 @@ class Snippet < ApplicationRecord
|
|||
(public? && (title_changed? || content_changed?))
|
||||
end
|
||||
|
||||
# snippers are the biggest sources of spam
|
||||
# snippets are the biggest sources of spam
|
||||
override :allow_possible_spam?
|
||||
def allow_possible_spam?
|
||||
false
|
||||
|
|
|
@ -220,7 +220,7 @@ end
|
|||
them non-nullable. These options can still be overridden by adding
|
||||
them as arguments.
|
||||
- **`ability_field`**: Expose an ability defined in our policies. This
|
||||
takes behaves the same way as `permission_field` and the same
|
||||
behaves the same way as `permission_field` and the same
|
||||
arguments can be overridden.
|
||||
- **`abilities`**: Allows exposing several abilities defined in our
|
||||
policies at once. The fields for these will all have be non-nullable
|
||||
|
|
Loading…
Reference in New Issue