mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Fix uploads for non-admin users
This commit is contained in:
@@ -272,7 +272,7 @@ function Files({files, resourceID}: { files: RFile[], resourceID: number }) {
|
||||
}
|
||||
<div className={"h-2"}></div>
|
||||
{
|
||||
app.isAdmin() && <div className={"flex flex-row-reverse"}>
|
||||
app.canUpload() && <div className={"flex flex-row-reverse"}>
|
||||
<CreateFileDialog resourceId={resourceID}></CreateFileDialog>
|
||||
</div>
|
||||
}
|
||||
|
Reference in New Issue
Block a user