Allowed to change apps that are NOT owned by anyone on frontend

This commit is contained in:
frikky
2021-11-22 20:25:48 +01:00
parent 3152f19ae5
commit d0626b0290
+4 -2
View File
@@ -983,9 +983,11 @@ const Apps = (props) => {
) : null}
{activateButton}
{(props.userdata !== undefined &&
{(props.userdata !== undefined &&
(props.userdata.role === "admin" ||
props.userdata.id === selectedApp.owner)) ||
props.userdata.id === selectedApp.owner ||
selectedApp.owner === ""
)) ||
!selectedApp.generated ? (
<div>
{editButton}