• Douwe Maan's avatar
    Merge branch 'adam-fix-labels-find-or-create' into 'master' · 9addb147
    Douwe Maan authored
    Pass user instance to Labels::FindOrCreateService or skip_authorization: true
    
    It fixes a bug described in #23694 when `project.owner` was passed to `Labels::FindOrCreateService`. `Labels::FindOrCreateService` expected a user instance and `project.owner` may return a group as well. This MR makes sure that we either pass a user instance or `skip_authorization: true`.
    
    Fixes #23694
    
    See merge request !7093
    Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
    9addb147
project.rb 39.7 KB