Skip to content

Commit

Permalink
Changed location of print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
AlAnoud2003 committed Sep 2, 2024
1 parent 6fe49b8 commit 9781789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/topics/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ module.exports = function (Topics) {
const cannotCreate = !canCreate;
const cannotTag = !canTag && data.tags.length;

console.log('Anoud: Refactored code executed');

if (cannotCreate || cannotTag) {
throw new Error('[[error:no-privileges]]');
}

console.log('Anoud: Refactored code executed');

await guestHandleValid(data);
if (!data.fromQueue) {
await user.isReadyToPost(uid, data.cid);
Expand Down

0 comments on commit 9781789

Please sign in to comment.