Making editing possible to presenter

This commit is contained in:
André Castro 2023-05-12 11:15:41 -03:00 committed by GitHub
parent cdfa38ad85
commit e9ae302d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
};