fix: imports from src in config files lead to crash

This commit is contained in:
Thea Schöbl
2022-01-31 15:34:45 +00:00
committed by Rainer Killinger
parent e65a81fcfa
commit f6003d7f87
6 changed files with 14 additions and 14 deletions

View File

@@ -12,6 +12,16 @@ import {
import {readFileSync} from 'fs';
import {resolve} from 'path';
/**
* Evaluates if a number is within the given range
*
* @param num The number that should be checked
* @param range Array of two numbers representing a range (inclusive interval)
*/
export function inRangeInclusive(num: number, range: number[]): boolean {
return num >= range[0] && num <= range[1];
}
const userGroupSetting: SCUserGroupSetting = {
categories: ['profile'],
defaultValue: 'students',