mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-26 18:48:15 +02:00
GH-3992 fix for missing templates, error when 'system' not found as user. (#3998)
This commit is contained in:
parent
100b457911
commit
eb7601d841
@ -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…
x
Reference in New Issue
Block a user