diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-12 12:08:30 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-12 12:08:30 +0000 |
commit | cb3b9f9243555b0c26145e2992a9f01f7fa47bf5 (patch) | |
tree | 5fea3438f0c21330e2fba8c958cbc505810ab990 /app/models/event.rb | |
parent | 71d34aac9a0fae0507c265929767422391816b01 (diff) | |
download | gitlab-ce-cb3b9f9243555b0c26145e2992a9f01f7fa47bf5.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/event.rb')
-rw-r--r-- | app/models/event.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/event.rb b/app/models/event.rb index e9a98c06b59..8ae2f61f36d 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -369,6 +369,10 @@ class Event < ApplicationRecord Event._to_partial_path end + def has_no_project_and_group? + project_id.nil? && group_id.nil? + end + protected def capability |