From 43722df412a5ad7d7638932c12aceed8d4e63efc Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Mon, 4 Apr 2022 09:18:39 -0600 Subject: [PATCH] update formatting --- server/api/api.go | 1 - 1 file changed, 1 deletion(-) diff --git a/server/api/api.go b/server/api/api.go index 10bc75d5b..4b18a93b6 100644 --- a/server/api/api.go +++ b/server/api/api.go @@ -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"})