1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-09 08:56:07 +02:00

don't display temlate page if readonly and access revoked (#2499)

This commit is contained in:
Scott Bishel 2022-03-10 07:51:06 -07:00 committed by GitHub
parent 5e41c23c07
commit 61f1a3cc65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,9 +349,16 @@ const BoardPage = (props: Props): JSX.Element => {
<div className='error'>
{intl.formatMessage({id: 'BoardPage.syncFailed', defaultMessage: 'Board may be deleted or access revoked.'})}
</div>}
<Workspace
readonly={props.readonly || false}
/>
{
// Don't display Templates page
// if readonly mode and no board defined.
(!props.readonly || board !== undefined) &&
<Workspace
readonly={props.readonly || false}
/>
}
</div>
)
}