fix(typo): spelling mistake in error message

This commit is contained in:
izzy lyseggen
2020-08-24 17:51:23 +01:00
parent 4fd1a6b480
commit 56f27e4715
+2 -2
View File
@@ -99,9 +99,9 @@ async function validateServerRole( context, requiredRole ) {
async function validateScopes( scopes, scope ) {
if ( !scopes )
throw new ForbiddenError( 'You do not have the required priviliges.' )
throw new ForbiddenError( 'You do not have the required privileges.' )
if ( scopes.indexOf( scope ) === -1 && scopes.indexOf( '*' ) === -1 )
throw new ForbiddenError( 'You do not have the required priviliges.' )
throw new ForbiddenError( 'You do not have the required privileges.' )
}
/*