Cleaned up Codebase after finishing Tutorial on php and adding files, styles some logic for LearningPlattform Projekt

This commit is contained in:
Patryk Hegenberg 2023-01-07 10:56:35 +01:00
parent 1b0b12b655
commit cbabe10ee9
22 changed files with 16 additions and 3419 deletions

View file

@ -10,8 +10,8 @@
return $_SERVER['REQUEST_URI'] === $value;
}
function authorize($condition) {
function authorize($condition, $status = Response::FORBIDDEN) {
if (! $condition) {
abort(Response::FORBIDDEN);
abort($status);
}
}