update formatting

This commit is contained in:
Scott Bishel 2022-04-04 09:18:39 -06:00
parent c11c6e9b3f
commit 43722df412

View file

@ -2547,7 +2547,6 @@ func (a *API) handleDuplicateBoard(w http.ResponseWriter, r *http.Request) {
return
}
if board.Type == model.BoardTypePrivate {
if !a.permissions.HasPermissionToBoard(userID, boardID, model.PermissionViewBoard) {
a.errorResponse(w, r.URL.Path, http.StatusForbidden, "", PermissionError{"access denied to board"})