GH-3992 fix for missing templates, error when 'system' not found as user. (#3998)
This commit is contained in:
parent
100b457911
commit
eb7601d841
1 changed files with 3 additions and 0 deletions
|
@ -803,6 +803,9 @@ func (s *MattermostAuthLayer) GetMemberForBoard(boardID, userID string) (*model.
|
|||
bm, err := s.Store.GetMemberForBoard(boardID, userID)
|
||||
// Explicit membership not found
|
||||
if model.IsErrNotFound(err) {
|
||||
if userID == model.SystemUserID {
|
||||
return nil, model.NewErrNotFound(userID)
|
||||
}
|
||||
var user *model.User
|
||||
// No synthetic memberships for guests
|
||||
user, err = s.GetUserByID(userID)
|
||||
|
|
Loading…
Reference in a new issue