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:
parent
5e41c23c07
commit
61f1a3cc65
@ -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>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user