refs #6434 perf: remove console.error
gitea/salix/pipeline/head Build queued... Details

This commit is contained in:
Javier Segarra 2023-11-29 19:33:04 +00:00
parent 48b82b02ca
commit ed6c0924d7
1 changed files with 1 additions and 3 deletions

View File

@ -141,10 +141,8 @@ module.exports = function(Self) {
ip: ctx.req.ip,
owner: isOwner
});
if (!isOwner) {
console.error('ERROR!!! - SignIn with other user', userToken, user);
if (!isOwner)
throw new UserError('Try again');
}
};
/**