This pr is aiming to fix the permission issue on preview tab.
Current progress:
If permission = 'none', the preview tab will not render.
If permission = 'write' or 'owner', the preview tab will render along with edit functionality.
WIP:
If permission = 'read', we should hide the edit functionality. This is a little tricky, as the preview section is embedded and it doesn't know about the permission.
This pr is aiming to fix the permission issue on preview tab.
Current progress:
WIP: