mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
feat: new modpack permissions system (#6005)
* Begin external projects moderator database frontend * add copy link button * begin project page permissions settings * MEL database backend routes * include filename in external files * wip: when uploading a version file, fetch its overrides as a list * wip: override license checks * improve FileHost ref counting * file host read capability * scan files when inserting version file * add dependency sha1 field * clean up version files * wip: attributions * update s3 file host * attribution scanning basic works * works * insert attribution info after resolving * add routes * remove dep sha1 stuff * prepr * wip: override file sources * add files_missing_attributions to versions * return extended version info + attributed at/by * hook up frontend to backend (mostly) * expose version date published * withholding version visibility * frontend work * prepr * use api-client for img upload * moar frontend * prepr * Add schema to attribution resolution and Flame project results * sqlx prepare * changes * remove feature flag, fix optional proof images * fix schema * fmt * fix deletion and file fetch * prepare * fix admonition * update frontend stuff to new schema * prepr * attribution on dependencies * fixes * sqlx prepare * fixes * routes * fix routes * Version grandfathering * prepare * wip: bulk routes * pushing what i've got rn * include link in NoPermission * change hash insert to bulk route * query flame even if entry in MEL * delete file with weird name * Prioritise putting override files in existing groups even with ExternalLicense * fix how hex bytes are handled in route * feat: coolbot moderation changes (#6215) * Update moderator checklist * move permissions stage order * Updated nagContext.versions to v3, added nag for permissions * Update permissions.vue default messages * prepr --------- Co-authored-by: coolbot100s <76798835+coolbot100s@users.noreply.github.com> * QA * prepr * should group by project * return attribution resolution correctly * updated by moderator info * Track what moderator reviewed an attribution moderation status * default deser FMA field * new version page * clean up fetching + add a couple missing features * qa items * prepr * provide moderation package stuff with DI * format? * don't redact moderated_at * move supplementary resources * Reorganize moderation messages. * Quick replies for external content permissions. * prepare * QA * allow exempting projects * Ignore Flame projects which 404 * fix ci * fix cross project attribution stuff * Fix permission error * change what files get cscanned * add more logging * QA Jun 22 * fix * idempotency * Expose route for rescanning * update blog link --------- Co-authored-by: aecsocket <aecsocket@tutanota.com> Co-authored-by: coolbot100s <76798835+coolbot100s@users.noreply.github.com> Co-authored-by: aecsocket <43144841+aecsocket@users.noreply.github.com>
This commit is contained in:
co-authored by
coolbot100s
aecsocket
aecsocket
parent
a686a93858
commit
e7926083fb
@@ -0,0 +1,59 @@
|
||||
import type { QuickReply } from '../types/quick-reply'
|
||||
|
||||
export default [
|
||||
{
|
||||
label: '✅ Corrections Applied',
|
||||
message: async () =>
|
||||
(await import('./messages/quick-replies/externals-permissions/corrections-applied.md?raw'))
|
||||
.default,
|
||||
private: false,
|
||||
},
|
||||
{
|
||||
label: '🚫 Bad Proofs',
|
||||
message: async () =>
|
||||
(await import('./messages/quick-replies/externals-permissions/illegitimate-evidence.md?raw'))
|
||||
.default,
|
||||
private: false,
|
||||
},
|
||||
{
|
||||
label: '⛔ Inaccessible Proofs',
|
||||
message: async () =>
|
||||
(await import('./messages/quick-replies/externals-permissions/inaccessible-evidence.md?raw'))
|
||||
.default,
|
||||
private: false,
|
||||
},
|
||||
{
|
||||
label: '🌐 Not Permission to Distribute',
|
||||
message: async () =>
|
||||
(await import('./messages/quick-replies/externals-permissions/but-its-online.md?raw'))
|
||||
.default,
|
||||
private: false,
|
||||
},
|
||||
{
|
||||
label: '🍴 Forks',
|
||||
message: async () =>
|
||||
(await import('./messages/quick-replies/externals-permissions/forks.md?raw')).default,
|
||||
private: false,
|
||||
},
|
||||
{
|
||||
label: '💲 Premium Content',
|
||||
message: async () =>
|
||||
(await import('./messages/quick-replies/externals-permissions/premium-content.md?raw'))
|
||||
.default,
|
||||
private: false,
|
||||
},
|
||||
{
|
||||
label: '⚖️ Prohibited Content',
|
||||
message: async () =>
|
||||
(await import('./messages/quick-replies/externals-permissions/prohibited-content.md?raw'))
|
||||
.default,
|
||||
private: false,
|
||||
},
|
||||
{
|
||||
label: '🧑💻 Cheats and Hacks',
|
||||
message: async () =>
|
||||
(await import('./messages/quick-replies/externals-permissions/cheats-and-hacks.md?raw'))
|
||||
.default,
|
||||
private: false,
|
||||
},
|
||||
] as ReadonlyArray<QuickReply>
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { Stage } from '../types/stage'
|
||||
import modpackPermissionsStage from './modpack-permissions-stage'
|
||||
import categories from './stages/categories'
|
||||
import description from './stages/description'
|
||||
import environment from './stages/environment/environment'
|
||||
@@ -7,6 +6,7 @@ import environmentMultiple from './stages/environment/environment-multiple'
|
||||
import gallery from './stages/gallery'
|
||||
import license from './stages/license'
|
||||
import links from './stages/links'
|
||||
import permissions from './stages/permissions'
|
||||
import postApproval from './stages/post-approval'
|
||||
import reupload from './stages/reupload'
|
||||
import ruleFollowing from './stages/rule-following'
|
||||
@@ -28,8 +28,8 @@ export default [
|
||||
gallery,
|
||||
versions,
|
||||
reupload,
|
||||
permissions,
|
||||
ruleFollowing,
|
||||
modpackPermissionsStage,
|
||||
statusAlerts,
|
||||
undefinedProject,
|
||||
postApproval,
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
## Proof of Permissions
|
||||
|
||||
You may not have the necessary rights or permissions to distribute some of the external content included in your Modpack. </br>
|
||||
Per section 4 of %RULES%, we ask that you please complete all steps and address all notes left by moderators if any in your project's %PROJECT_PERMISSIONS_FLINK%.
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
## Permissions Incomplete
|
||||
|
||||
Per section 4 of %RULES%, we ask that you complete all steps requested in your project's %PROJECT_PERMISSIONS_FLINK%.
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
## Prohibited External Content
|
||||
|
||||
Some external content in your mod was found to be prohibited.</br>
|
||||
This means you cannot include these files in your Modpack on Modrinth, likely because it violates one of %RULES%.
|
||||
|
||||
Please view your project's %PROJECT_PERMISSIONS_FLINK% for a list of what content must be removed from your pack before distribution on Modrinth.
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
Not all free or publicly accessible works permit redistribution.
|
||||
|
||||
Please provide accurate information on this file's origin and its ability to be redistributed in your Modpack.
|
||||
+1
@@ -0,0 +1 @@
|
||||
Modrinth does not permit the distribution of external content that violates section 3 of [Modrinth's Content Rules](https://modrinth.com/legal/rules).
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
The information provided may have been inaccurate or could not be confirmed.
|
||||
|
||||
Our moderation team has updated this file with accurate information.
|
||||
@@ -0,0 +1,3 @@
|
||||
Per section 4 of [Modrinth's Content Rules](https://modrinth.com/legal/rules), projects forked from existing content are subject to the licensing and permissions of the source work.
|
||||
|
||||
Please provide proof that this fork is license-abiding and can be distributed in this modpack.
|
||||
+1
@@ -0,0 +1 @@
|
||||
Please only submit legitimate evidence and do not attempt to spam external content notes with unnecessary information.
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
The link provided does not direct to a publicly accessible forum, or our moderators are unable to review this proof.
|
||||
|
||||
Please provide other evidence, such as a screenshot or a link to publicly available information.
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
This file appears to be pay-walled by its author or requires a license to access its features.
|
||||
|
||||
The permissions and licensing of this content's standard version do not apply to this file, or it cannot be distributed on Modrinth.
|
||||
+1
@@ -0,0 +1 @@
|
||||
Modrinth does not permit the distribution of external content that violates [Modrinth's Content Rules](https://modrinth.com/legal/rules).
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user