Fixed access right problems for app reloading
This commit is contained in:
@@ -1019,7 +1019,7 @@ const Apps = (props) => {
|
||||
{activateButton}
|
||||
{editNewButton}
|
||||
{(props.userdata !== undefined &&
|
||||
(props.userdata.role === "admin" ||
|
||||
(props.userdata.admin === "true" ||
|
||||
props.userdata.id === selectedApp.owner ||
|
||||
selectedApp.owner === ""
|
||||
)) || !selectedApp.generated ? (
|
||||
@@ -1408,6 +1408,7 @@ const Apps = (props) => {
|
||||
}, [appValidation, isDropzone]);
|
||||
|
||||
var appDelay = -75
|
||||
|
||||
const appView = isLoggedIn ? (
|
||||
<Dropzone
|
||||
style={{ width: viewWidth * 2 + 20, margin: "auto", padding: 20 }}
|
||||
@@ -1481,7 +1482,7 @@ const Apps = (props) => {
|
||||
</Tooltip>
|
||||
)}
|
||||
|
||||
{userdata === undefined || userdata === null || userdata.role !== "admin" ? null :
|
||||
{userdata === undefined || userdata === null || userdata.admin === "false" ? null :
|
||||
<Tooltip
|
||||
title={"Download from Github"}
|
||||
style={{ marginTop: "28px", width: "100%" }}
|
||||
|
||||
@@ -151,7 +151,10 @@ const Search = (props) => {
|
||||
<AppGrid maxRows={3} showSuggestion={true} globalUrl={globalUrl} isMobile={isMobile} userdata={userdata} />
|
||||
:
|
||||
curTab === 1 ?
|
||||
<WorkflowGrid maxRows={3} showSuggestion={true} globalUrl={globalUrl} isMobile={isMobile} userdata={userdata} />
|
||||
window.location.pathname === "/search" ?
|
||||
<WorkflowGrid maxRows={3} showSuggestion={true} globalUrl={globalUrl} isMobile={isMobile} userdata={userdata} />
|
||||
:
|
||||
<WorkflowGrid maxRows={3} showSuggestion={true} globalUrl={globalUrl} isMobile={isMobile} userdata={userdata} />
|
||||
:
|
||||
curTab === 2 ?
|
||||
<DocsGrid maxRows={6} parsedXs={12} showSuggestion={true} globalUrl={globalUrl} isMobile={isMobile} userdata={userdata} />
|
||||
@@ -162,6 +165,7 @@ const Search = (props) => {
|
||||
null}
|
||||
</div>
|
||||
</div>
|
||||
//{/*alternativeView={true} />*/}
|
||||
|
||||
const loadedCheck = isLoaded ?
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user