fix(ui): repair condition that checks when the user can edit annotation
parent
2eb5b65d3d
commit
f266a01a4a
|
@ -63,7 +63,7 @@ const AnnotationTooltip: FunctionComponent<Props> = props => {
|
|||
<div className="annotation-tooltip--items">
|
||||
<div className="annotation-tooltip-text">
|
||||
{annotation.text}
|
||||
{!isUsingAuth || isUserAuthorized(me, VIEWER_ROLE) ? (
|
||||
{!isUsingAuth || isUserAuthorized(me.role, VIEWER_ROLE) ? (
|
||||
<span
|
||||
className="annotation-tooltip--edit icon pencil"
|
||||
onClick={setEditing}
|
||||
|
|
Loading…
Reference in New Issue