|
|
|
@ -360,7 +360,8 @@ export class PublicDatasService {
|
|
|
|
|
const view = await View.getByUUID(param.sharedViewUuid); |
|
|
|
|
|
|
|
|
|
if (!view) NcError.notFound('Not found'); |
|
|
|
|
if (view.type !== ViewTypes.GRID) NcError.notFound('Not found'); |
|
|
|
|
if (view.type !== ViewTypes.GRID && view.type !== ViewTypes.KANBAN) |
|
|
|
|
NcError.notFound('Not found'); |
|
|
|
|
|
|
|
|
|
if (view.password && view.password !== param.password) { |
|
|
|
|
NcError.forbidden(ErrorMessages.INVALID_SHARED_VIEW_PASSWORD); |
|
|
|
@ -425,7 +426,8 @@ export class PublicDatasService {
|
|
|
|
|
const view = await View.getByUUID(param.sharedViewUuid); |
|
|
|
|
|
|
|
|
|
if (!view) NcError.notFound('Not found'); |
|
|
|
|
if (view.type !== ViewTypes.GRID) NcError.notFound('Not found'); |
|
|
|
|
if (view.type !== ViewTypes.GRID && view.type !== ViewTypes.KANBAN) |
|
|
|
|
NcError.notFound('Not found'); |
|
|
|
|
|
|
|
|
|
if (view.password && view.password !== param.password) { |
|
|
|
|
NcError.forbidden(ErrorMessages.INVALID_SHARED_VIEW_PASSWORD); |
|
|
|
|