Fix user errors when logged out (#759)

This commit is contained in:
Geometrically 2022-11-20 19:23:50 -07:00 committed by GitHub
parent 9e2d47eab5
commit 848f0db3d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,9 +196,10 @@
:client-side="project.client_side"
:server-side="project.server_side"
:status="
($auth.user && $auth.user.id === user.id) ||
$auth.user.role === 'admin' ||
$auth.user.role === 'moderator'
$auth.user &&
($auth.user.id === user.id ||
$auth.user.role === 'admin' ||
$auth.user.role === 'moderator')
? project.status
: null
"