Added entity reporting.
This commit is contained in:
@@ -19,6 +19,7 @@ import { curateRevision } from './revisions.js';
|
||||
import { curateStash } from './stashes.js';
|
||||
import { syncScenes } from './sync.js';
|
||||
import { fetchTagsById } from './tags.js';
|
||||
import { verifyNotBanned } from './users.js';
|
||||
|
||||
const logger = initLogger();
|
||||
const mj = new MerkleJson();
|
||||
@@ -1130,6 +1131,8 @@ export async function createSceneRevision(sceneId, { edits, comment, apply }, re
|
||||
throw new HttpError('Must be authenticated to create scene revision', 401);
|
||||
}
|
||||
|
||||
await verifyNotBanned(reqUser, 'revisions', 'You are not allowed to submit revisions');
|
||||
|
||||
const [
|
||||
[scene],
|
||||
openRevisions,
|
||||
|
||||
Reference in New Issue
Block a user