mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #23131 from overleaf/kh-teardown-link-sharing-split-tests
[web] tear down link sharing split tests GitOrigin-RevId: 449e9f368405aea1500035269428e7ae0c37d8fb
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
import { useEditorContext } from '../context/editor-context'
|
||||
import getMeta from '@/utils/meta'
|
||||
|
||||
function useViewerPermissions() {
|
||||
const { permissionsLevel } = useEditorContext()
|
||||
|
||||
const hasViewerPermissions =
|
||||
getMeta('ol-linkSharingWarning') && permissionsLevel === 'readOnly'
|
||||
return hasViewerPermissions
|
||||
return permissionsLevel === 'readOnly'
|
||||
}
|
||||
|
||||
export default useViewerPermissions
|
||||
|
||||
Reference in New Issue
Block a user