22 lines
704 B
Go
22 lines
704 B
Go
|
//go:generate mockgen --build_flags=--mod=mod -destination=mocks/mockstore.go -package mocks . Store
|
||
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||
|
// See LICENSE.txt for license information.
|
||
|
|
||
|
package permissions
|
||
|
|
||
|
import (
|
||
|
"github.com/mattermost/focalboard/server/model"
|
||
|
|
||
|
mmModel "github.com/mattermost/mattermost-server/v6/model"
|
||
|
)
|
||
|
|
||
|
type PermissionsService interface {
|
||
|
HasPermissionToTeam(userID, teamID string, permission *mmModel.Permission) bool
|
||
|
HasPermissionToBoard(userID, boardID string, permission *mmModel.Permission) bool
|
||
|
}
|
||
|
|
||
|
type Store interface {
|
||
|
GetBoard(boardID string) (*model.Board, error)
|
||
|
GetMemberForBoard(boardID, userID string) (*model.BoardMember, error)
|
||
|
}
|