diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-12 12:08:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-12 12:08:48 +0300 |
commit | 7f5e08060f261a63ebf5058a95419da66928173a (patch) | |
tree | b2f77e0445bb28e4eaf156b3d3b71bd46dac8951 /app/services/boards/visits | |
parent | 22864cafe7a3509342c3c880881ade40ce06f752 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/boards/visits')
-rw-r--r-- | app/services/boards/visits/create_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/boards/visits/create_service.rb b/app/services/boards/visits/create_service.rb index e2adf755511..428ed1a8bcc 100644 --- a/app/services/boards/visits/create_service.rb +++ b/app/services/boards/visits/create_service.rb @@ -5,6 +5,7 @@ module Boards class CreateService < Boards::BaseService def execute(board) return unless current_user && Gitlab::Database.read_write? + return unless board.is_a?(Board) # other board types do not support board visits yet if parent.is_a?(Group) BoardGroupRecentVisit.visited!(current_user, board) |