mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #4273 from overleaf/msm-update-publish-modal-permissions
User 'write' permission to display the publish button GitOrigin-RevId: f73ccf05b165ef1ef9e57e3aea4c04d177aba6d4
This commit is contained in:
+3
-2
@@ -16,6 +16,7 @@ describe('<ToolbarHeader />', function () {
|
||||
renameProject: () => {},
|
||||
openShareModal: () => {},
|
||||
togglePdfView: () => {},
|
||||
hasPublishPermissions: true,
|
||||
}
|
||||
|
||||
describe('cobranding logo', function () {
|
||||
@@ -109,10 +110,10 @@ describe('<ToolbarHeader />', function () {
|
||||
screen.getByText('Submit')
|
||||
})
|
||||
|
||||
it('is not displayed for anonymous users', function () {
|
||||
it('is not displayed for users with no publish permissions', function () {
|
||||
const props = {
|
||||
...defaultProps,
|
||||
isAnonymousUser: true,
|
||||
hasPublishPermissions: false,
|
||||
}
|
||||
render(<ToolbarHeader {...props} />)
|
||||
expect(screen.queryByText('Submit')).to.not.exist
|
||||
|
||||
Reference in New Issue
Block a user