Making editing possible to presenter
This commit is contained in:
parent
cdfa38ad85
commit
e9ae302d54
@ -51,7 +51,7 @@ const WhiteboardContainer = (props) => {
|
||||
const owner = shapes[id]?.userId;
|
||||
const isBackgroundShape = id?.includes('slide-background');
|
||||
const isPollsResult = shapes[id]?.name?.includes('poll-result');
|
||||
const hasAccess = !isBackgroundShape && !isPollsResult
|
||||
const hasAccess = !isBackgroundShape && !isPollsResult || isPresenter
|
||||
&& ((owner && owner === currentUser?.userId) || !owner || isPresenter || isModerator);
|
||||
return hasAccess;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user