Commit 62b149a4 authored by Robert Knight's avatar Robert Knight

Add missing types for AnnotationActionBar

parent d287e8f6
......@@ -54,6 +54,7 @@ function AnnotationActionBar({
const isLoggedIn = store.isLoggedIn();
// Is the current user allowed to take the given `action` on this annotation?
/** @param {'update'|'delete'} action */
const userIsAuthorizedTo = action => {
return permits(annotation.permissions, action, userProfile.userid);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment